kernel-ark/arch/um/os-Linux
Jeff Dike 4b84c69b5f [PATCH] uml: Move signal handlers to arch code
Have most signals go through an arch-provided handler which recovers the
sigcontext and then calls a generic handler.  This replaces the
ARCH_GET_SIGCONTEXT macro, which was somewhat fragile.  On x86_64, recovering
%rdx (which holds the sigcontext pointer) must be the first thing that
happens.  sig_handler duly invokes that first, but there is no guarantee that
I can see that instructions won't be reordered such that %rdx is used before
that.  Having the arch provide the handler seems much more robust.

Some signals in some parts of UML require their own handlers - these places
don't call set_handler any more.  They call sigaction or signal themselves.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-26 08:49:07 -07:00
..
drivers
include
skas [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
sys-i386 [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
sys-x86_64 [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
aio.c
elf_aux.c
file.c
helper.c [PATCH] uml: Fix handling of failed execs of helpers 2006-09-26 08:49:06 -07:00
irq.c [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
main.c [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
Makefile
mem.c [PATCH] uml: Use ARRAY_SIZE more assiduously 2006-09-26 08:49:05 -07:00
process.c [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
sigio.c [PATCH] uml: SIGIO cleanups 2006-09-26 08:49:07 -07:00
signal.c [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
start_up.c
time.c [PATCH] uml: Move signal handlers to arch code 2006-09-26 08:49:07 -07:00
tls.c
trap.c [PATCH] uml: Use klibc setjmp/longjmp 2006-09-26 08:49:05 -07:00
tt.c
tty_log.c
tty.c
uaccess.c [PATCH] uml: Use klibc setjmp/longjmp 2006-09-26 08:49:05 -07:00
umid.c
user_syms.c
util.c [PATCH] uml: Use klibc setjmp/longjmp 2006-09-26 08:49:05 -07:00