summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/i387.c
diff options
context:
space:
mode:
authorAurelien Jarno2008-03-05 19:14:24 +0100
committerIngo Molnar2008-03-07 16:39:14 +0100
commite40cd10ccff3d9fbffd57b93780bee4b7b9bff51 (patch)
treebdc58b9f84e7e4bd37da3bfb1f9a445a1560c0c3 /arch/x86/kernel/i387.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.25 (diff)
downloadkernel-qcow2-linux-e40cd10ccff3d9fbffd57b93780bee4b7b9bff51.tar.gz
kernel-qcow2-linux-e40cd10ccff3d9fbffd57b93780bee4b7b9bff51.tar.xz
kernel-qcow2-linux-e40cd10ccff3d9fbffd57b93780bee4b7b9bff51.zip
x86: clear DF before calling signal handler
The Linux kernel currently does not clear the direction flag before calling a signal handler, whereas the x86/x86-64 ABI requires that. Linux had this behavior/bug forever, but this becomes a real problem with gcc version 4.3, which assumes that the direction flag is correctly cleared at the entry of a function. This patches changes the setup_frame() functions to clear the direction before entering the signal handler. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Ingo Molnar <mingo@elte.hu> Acked-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/i387.c')
0 files changed, 0 insertions, 0 deletions