Commit 306eb7e6 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix interrupt enabling on trap return.

parent 6dde2ed0
......@@ -185,6 +185,7 @@ rtrap_xcall:
* sched+signal checks with IRQs disabled.
*/
to_user: wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
wrpr 0, %pil
__handle_preemption_continue:
ldx [%g6 + TI_FLAGS], %l0
sethi %hi(_TIF_USER_WORK_MASK), %o0
......@@ -271,6 +272,7 @@ to_kernel:
brnz %l5, kern_fpucheck
sethi %hi(PREEMPT_ACTIVE), %l6
stw %l6, [%g6 + TI_PRE_COUNT]
wrpr 0, %pil
call schedule
nop
ba,pt %xcc, rtrap
......
Markdown is supported
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