um: fix FPU state preservation around signal handlers
authorEli Cooper <elicooper@gmx.com>
Sat, 19 Mar 2016 16:58:39 +0000 (00:58 +0800)
committerRichard Weinberger <richard@nod.at>
Sat, 21 May 2016 21:37:16 +0000 (23:37 +0200)
commit6de5a8a5001687df720b36729c799991cc0faff5
tree542d6b18724e71912a73c5bdc9f220404506e6e4
parent44549e8f5eea4e0a41b487b63e616cb089922b99
um: fix FPU state preservation around signal handlers

This patch makes UML saves/restores FPU state from/to the fpstate in
pt_regs when setting up or returning from a signal stack, rather than
calling ptrace directly. This ensures that FPU state is correctly
preserved around signal handlers in a multi-threaded scenario.

Signed-off-by: Eli Cooper <elicooper@gmx.com>
arch/x86/um/signal.c