Commit 764afe2e authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[SPARC64]: Kill hard-coded %pstate setting in sparc_exit.

Just flip the bit off of whatever it's currently set to.
PSTATE_IE is guarenteed to be enabled when we get here.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2f7ee7c6
...@@ -1475,13 +1475,14 @@ ret_from_syscall: ...@@ -1475,13 +1475,14 @@ ret_from_syscall:
1: b,pt %xcc, ret_sys_call 1: b,pt %xcc, ret_sys_call
ldx [%sp + PTREGS_OFF + PT_V9_I0], %o0 ldx [%sp + PTREGS_OFF + PT_V9_I0], %o0
sparc_exit: wrpr %g0, (PSTATE_RMO | PSTATE_PEF | PSTATE_PRIV), %pstate sparc_exit: rdpr %pstate, %g2
wrpr %g2, PSTATE_IE, %pstate
rdpr %otherwin, %g1 rdpr %otherwin, %g1
rdpr %cansave, %g3 rdpr %cansave, %g3
add %g3, %g1, %g3 add %g3, %g1, %g3
wrpr %g3, 0x0, %cansave wrpr %g3, 0x0, %cansave
wrpr %g0, 0x0, %otherwin wrpr %g0, 0x0, %otherwin
wrpr %g0, (PSTATE_RMO | PSTATE_PEF | PSTATE_PRIV | PSTATE_IE), %pstate wrpr %g2, 0x0, %pstate
ba,pt %xcc, sys_exit ba,pt %xcc, sys_exit
stb %g0, [%g6 + TI_WSAVED] stb %g0, [%g6 + TI_WSAVED]
......
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