Commit 30a6ecad authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[SPARC64]: Don't clobber alt-global %g4 on window fixups.

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 86b81868
......@@ -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
......
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