]> git.hungrycats.org Git - linux/commit
[PATCH] Make i386 signal delivery work with -mregparm
authorH. Peter Anvin <hpa@zytor.com>
Tue, 31 Aug 2004 03:38:44 +0000 (20:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 31 Aug 2004 03:38:44 +0000 (20:38 -0700)
commit9691cc0d7cf7dd7908952177dd332c458446bf78
tree98a52bf9979a0db1e531f6960cecbfe9dbaa3cb7
parent26fec91d9ab2c5ac12be1d1b1a8a0ab64fd707d4
[PATCH] Make i386 signal delivery work with -mregparm

This patch allows i386 signal delivery to work correctly when userspace is
compiled with -mregparm.  This is somewhat hacky: it passes the arguments
*both* on the stack and in registers, but it works because there are only
one or three (depending on SA_SIGINFO) official arguments.  If you're
relying on the unofficial arguments then you're doing something nonportable
anyway and can put in the __attribute__((cdecl,regparm(0))) in the correct
place.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/signal.c