Skip to content

Commit

Permalink
[SPARC64]: Don't clobber alt-global %g4 on window fixups.
Browse files Browse the repository at this point in the history
If we are returning back to kernel mode, %g4 could be live
(for example, in the case where we window spill in the etrap
code).  So do not change it's value if going back to kernel.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Mar 20, 2006
1 parent 86b8186 commit 30a6eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/winfixup.S
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ spill_fixup:
andcc %g1, TSTATE_PRIV, %g0
saved
and %g1, TSTATE_CWP, %g1
be,pn %xcc, window_scheisse_from_user_common
be,a,pn %xcc, window_scheisse_from_user_common
mov FAULT_CODE_WRITE | FAULT_CODE_DTLB | FAULT_CODE_WINFIXUP, %g4
retry

Expand Down

0 comments on commit 30a6eca

Please sign in to comment.