linux-stable-rt/arch/um/include/sysdep-x86_64
Paolo 'Blaisorblade' Giarrusso 4f0272415a [PATCH] uml: fix syscall stubs
Jeff Dike noted that the assembly code for syscall stubs is misassembled with
GCC 3.2.3: the values copied in registers weren't preserved between one asm()
and the following one.

So I fixed the thing by rewriting the __asm__ constraints more like unistd.h
ones.

Note: in syscall6 case I had to add one more instruction (i.e.  moving arg6 in
eax and shuffling things around) - it's needed for the function to be valid in
general (we can't load the value from the stack, relative to ebp, because we
change it), but could be avoided since we actually use a constant as param 6.

The only fix would be to turn stub_syscall6 to a macro and use a "i"
constraint for arg6 (i.e., specify it's a constant value).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-07 07:53:30 -08:00
..
checksum.h
faultinfo.h
ptrace.h [PATCH] build fix for uml/amd64 2005-10-19 23:18:16 -07:00
ptrace_user.h [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
sc.h [PATCH] uml makefiles sanitized 2005-09-29 08:46:26 -07:00
sigcontext.h [PATCH] uml: fix page faults in SKAS3 mode. 2005-09-30 12:41:18 -07:00
signal.h
skas_ptrace.h
stub.h [PATCH] uml: fix syscall stubs 2005-11-07 07:53:30 -08:00
syscalls.h [PATCH] uml: system call path cleanup 2005-09-05 00:06:23 -07:00
thread.h [PATCH] uml: fix compile failure for TT mode 2005-10-24 08:59:25 -07:00