From: Adrian Bunk <bunk@kernel.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: andi@firstfloor.org, harvey.harrison@gmail.com,
jdike@addtoit.com, akpm@linux-foundation.org,
linux-kernel@vger.kernel.org,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: uml and -regparm=3
Date: Wed, 9 Jan 2008 23:33:06 +0200 [thread overview]
Message-ID: <20080109213305.GC4394@does.not.exist> (raw)
In-Reply-To: <E1JCiLx-0006lI-HR@pomaz-ex.szeredi.hu>
On Wed, Jan 09, 2008 at 10:20:49PM +0100, Miklos Szeredi wrote:
> > Miklos Szeredi <miklos@szeredi.hu> writes:
> >
> > > FASTCALL is defined empty in -mm, but UML is not compiled with
> > > -mregparm=3 and so this breaks things (I noticed problems with
> > > rwsem_down_write_failed).
> > >
> > > Tried recompiling UML with -mregparm=3, but that resulted in a strange
> > > failure immediately after startup:
> > >
> > > |%G�%@: Invalid argument
> > >
> > > What's up?
> >
> > UML links with glibc and that does not use -mregparm.
> >
> > You can only use -mregparm in user space if you recompile
> > all libraries too.
>
> Ah, right. I didn't think of that.
>
> Does that mean that FASTCALL removals will have to be undone? Or is
> there an alternative?
It's enough when we keep fastcall/FASTCALL in the few cases where UML
calls assembler code with this calling convention. [1]
> Miklos
cu
Adrian
[1] http://lkml.org/lkml/2007/12/4/425
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2008-01-09 21:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 21:01 uml and -regparm=3 Miklos Szeredi
2008-01-09 21:12 ` Andi Kleen
2008-01-09 21:20 ` Miklos Szeredi
2008-01-09 21:32 ` Andi Kleen
2008-01-09 21:50 ` Miklos Szeredi
2008-01-10 2:14 ` Jeff Dike
2008-01-10 2:37 ` Andi Kleen
2008-01-10 2:45 ` H. Peter Anvin
2008-01-09 21:33 ` Adrian Bunk [this message]
2008-01-09 22:01 ` linux-os (Dick Johnson)
2008-01-10 7:32 ` Ingo Molnar
2008-01-10 9:05 ` Miklos Szeredi
2008-01-10 9:35 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080109213305.GC4394@does.not.exist \
--to=bunk@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=harvey.harrison@gmail.com \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox