powerpc: Fix clearing of the FPSCR when invoking a signal handler
authorPaul Mackerras <paulus@samba.org>
Mon, 14 Nov 2005 10:55:15 +0000 (21:55 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 15 Nov 2005 00:11:32 +0000 (11:11 +1100)
commitcc657f53928997c65bf2409c45166c6ceee8d306
tree247e16076381a947b4305bb6467acde1189f3918
parent493f25ef4087395891c99fcfe2c72e62e293e89f
powerpc: Fix clearing of the FPSCR when invoking a signal handler

As pointed out by Gary Byers, we were clearing the image of the FPSCR
(floating point status and control register) in the thread_struct before
copying it to the user stack when invoking a signal.  Thus the task
would see its FPSCR getting cleared when it took a signal.

While fixing it I noticed that our swapcontext system call was also
clearing FPSCR.  It shouldn't, so I fixed that too.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_64.c