Skip to content
Commit 9bbafce2 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Fix occasional FPU register corruption under preempt.



Presently with preempt enabled there's the possibility to be preempted
after the TIF_USEDFPU test and the register save, leading to bogus
state post-__switch_to(). Use an explicit preempt_disable()/enable()
pair around unlazy_fpu()/clear_fpu() to avoid this. Follows the x86
change.

Reported-by: default avatarTakuo Koguchi <takuo.koguchi.sw@hitachi.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 05dda977
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment