kernel_optimize_test/arch/um/sys-x86_64
Paolo 'Blaisorblade' Giarrusso bcb01b8a67 [PATCH] uml: fix lvalue for gcc4
Russell King <rmk+lkml@arm.linux.org.uk>

This construct is refused by GCC 4, so here's the (corrected) fix.  Thanks to
Russell for noticing a stupid mistake I did when first sending this.

As he noted, the code is largely suboptimal however it currently works, and
will be fixed shortly.  Just read the access_ok check on fp which is NULL, or
the pointer arithmetic below which should be done with a cast to void*:

 	frame = (struct rt_sigframe __user *)
 		round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8;

The code shows clearly that has been taken from
arch/x86_64/kernel/signal.c:setup_rt_frame(), maybe in a bit of a hurry.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-14 09:00:24 -07:00
..
util [PATCH] uml: cross-build support : mk_thread 2005-05-05 16:36:35 -07:00
bugs.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
delay.c [PATCH] uml: Delay loop cleanups 2005-05-20 15:48:17 -07:00
fault.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kernel-offsets.c [PATCH] uml: cross-build support : kernel_offsets 2005-05-05 16:36:35 -07:00
ksyms.c [PATCH] uml: small fixes left over from rc4 2005-05-20 15:48:17 -07:00
Makefile [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
mem.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ptrace_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ptrace.c [PATCH] uml: small fixes left over from rc4 2005-05-20 15:48:17 -07:00
sigcontext.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
signal.c [PATCH] uml: fix lvalue for gcc4 2005-07-14 09:00:24 -07:00
stub_segv.c [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
stub.S [PATCH] uml: skas0 - separate kernel address space on stock hosts 2005-07-07 18:23:44 -07:00
syscall_table.c [PATCH] uml: fix syscall table by including $(SUBARCH)'s one, for x86-64 2005-05-01 08:58:55 -07:00
syscalls.c [PATCH] uml: fork cleanup 2005-06-25 16:24:35 -07:00
sysrq.c [PATCH] uml: stack dump fix 2005-05-28 16:46:13 -07:00
um_module.c [PATCH] uml: kludgy compilation fixes for x86-64 subarch modules support 2005-05-05 16:36:33 -07:00
unmap.c [PATCH] uml: fix linkage of tt mode against NPTL 2005-06-21 19:07:32 -07:00
user-offsets.c [PATCH] uml: small fixes left over from rc4 2005-05-20 15:48:17 -07:00