Re: uml and -regparm=3

Andi Kleen
2008-01-09T21:12:56Z

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.

-Andi