Skip to content
Commit cc657f53 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

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: default avatarPaul Mackerras <paulus@samba.org>
parent 493f25ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment