mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 07:03:38 +00:00
[SPARC64]: Drop %gl to 0 before re-enabling PSTATE_IE in rtrap
If we take a window fault, on SUN4V set %gl to zero before we turn PSTATE_IE back on in %pstate. Otherwise if we take an interrupt we'll end up with corrupt register state. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d7744a0950
commit
fc50492867
1 changed files with 2 additions and 1 deletions
|
@ -333,7 +333,6 @@ user_rtt_fill_fixup:
|
||||||
|
|
||||||
mov %g6, %l1
|
mov %g6, %l1
|
||||||
wrpr %g0, 0x0, %tl
|
wrpr %g0, 0x0, %tl
|
||||||
wrpr %g0, RTRAP_PSTATE, %pstate
|
|
||||||
|
|
||||||
661: nop
|
661: nop
|
||||||
.section .sun4v_1insn_patch, "ax"
|
.section .sun4v_1insn_patch, "ax"
|
||||||
|
@ -341,6 +340,8 @@ user_rtt_fill_fixup:
|
||||||
SET_GL(0)
|
SET_GL(0)
|
||||||
.previous
|
.previous
|
||||||
|
|
||||||
|
wrpr %g0, RTRAP_PSTATE, %pstate
|
||||||
|
|
||||||
mov %l1, %g6
|
mov %l1, %g6
|
||||||
ldx [%g6 + TI_TASK], %g4
|
ldx [%g6 + TI_TASK], %g4
|
||||||
LOAD_PER_CPU_BASE(%g5, %g6, %g1, %g2, %g3)
|
LOAD_PER_CPU_BASE(%g5, %g6, %g1, %g2, %g3)
|
||||||
|
|
Loading…
Reference in a new issue