[SPARC64]: Refine register window trap handling.
When saving and restoing trap state, do the window spill/fill handling inline so that we never trap deeper than 2 trap levels. This is important for chips like Niagara. The window fixup code is massively simplified, and many more improvements are now possible. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -115,7 +115,6 @@ sparc64_realfault_common:
|
||||
ba,pt %xcc, rtrap_clr_l6 ! Restore cpu state
|
||||
nop ! Delay slot (fill me)
|
||||
|
||||
.globl winfix_trampoline
|
||||
winfix_trampoline:
|
||||
rdpr %tpc, %g3 ! Prepare winfixup TNPC
|
||||
or %g3, 0x7c, %g3 ! Compute branch offset
|
||||
|
Reference in New Issue
Block a user