• H. Peter Anvin's avatar
    [PATCH] Make i386 signal delivery work with -mregparm · 9691cc0d
    H. Peter Anvin authored
    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: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    9691cc0d
signal.c 15.9 KB