diff options
-rw-r--r-- | arch/sparc64/kernel/tsb.S | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/tsb.S b/arch/sparc64/kernel/tsb.S index c4e7740d5e82..e1dd37f5e535 100644 --- a/arch/sparc64/kernel/tsb.S +++ b/arch/sparc64/kernel/tsb.S | |||
@@ -110,10 +110,13 @@ tsb_do_itlb_fault: | |||
110 | 110 | ||
111 | .globl sparc64_realfault_common | 111 | .globl sparc64_realfault_common |
112 | sparc64_realfault_common: | 112 | sparc64_realfault_common: |
113 | stb %g4, [%g6 + TI_FAULT_CODE] ! Save fault code | 113 | /* fault code in %g4, fault address in %g5, etrap will |
114 | stx %g5, [%g6 + TI_FAULT_ADDR] ! Save fault address | 114 | * preserve these two values in %l4 and %l5 respectively |
115 | */ | ||
115 | ba,pt %xcc, etrap ! Save trap state | 116 | ba,pt %xcc, etrap ! Save trap state |
116 | 1: rd %pc, %g7 ! ... | 117 | 1: rd %pc, %g7 ! ... |
118 | stb %l4, [%g6 + TI_FAULT_CODE] ! Save fault code | ||
119 | stx %l5, [%g6 + TI_FAULT_ADDR] ! Save fault address | ||
117 | call do_sparc64_fault ! Call fault handler | 120 | call do_sparc64_fault ! Call fault handler |
118 | add %sp, PTREGS_OFF, %o0 ! Compute pt_regs arg | 121 | add %sp, PTREGS_OFF, %o0 ! Compute pt_regs arg |
119 | ba,pt %xcc, rtrap_clr_l6 ! Restore cpu state | 122 | ba,pt %xcc, rtrap_clr_l6 ! Restore cpu state |