[PATCH] i386: fix stack alignment for signal handlers It seems that the current signal code always sets up a stack frame so that signal handlers are run with a somewhat mis-aligned stack, i.e. (esp % 8 == 4). While this is not an i386 ABI requirement we really would like to have at least a 8-byte alignment (e.g. when using doubles or other floating point stuff). Furthermore, as recent gcc versions default to -mpreferred-stack-boundary=4, this patch assures a 16-byte alignment. Signed-off-by: Markus F.X.J. Oberhumer Please try the small attached user-space test program and please also carefully review the patch below - I don't do much kernel hacking... ~Markus -- Markus Oberhumer, , http://www.oberhumer.com/