diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-11 15:21:20 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:12:23 -0500 |
commit | 459b6e621e0e15315c25bac47fa7113e5818d45d (patch) | |
tree | 4bbff0ec1dafb7fba8b247c84ad708f54cc687fe /include/asm-sparc64/ttable.h | |
parent | fd05068d7b22b64211f9202aa67ad44b51d44242 (diff) |
[SPARC64]: Fix some SUN4V TLB miss bugs.
Code patching did not sign extend negative branch
offsets correctly.
Kernel TLB miss path needs patching and %g4 register
preservation in order to handle SUN4V correctly.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/ttable.h')
-rw-r--r-- | include/asm-sparc64/ttable.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-sparc64/ttable.h b/include/asm-sparc64/ttable.h index 6bb86a7a5b42..9e28b240f3aa 100644 --- a/include/asm-sparc64/ttable.h +++ b/include/asm-sparc64/ttable.h | |||
@@ -186,19 +186,19 @@ | |||
186 | ldx [%g2 + HV_FAULT_I_CTX_OFFSET], %g5; \ | 186 | ldx [%g2 + HV_FAULT_I_CTX_OFFSET], %g5; \ |
187 | srlx %g4, 22, %g7; \ | 187 | srlx %g4, 22, %g7; \ |
188 | sllx %g5, 48, %g6; \ | 188 | sllx %g5, 48, %g6; \ |
189 | brz,pn %g5, kvmap_itlb_4v; \ | 189 | ba,pt %xcc, sun4v_itsb_miss; \ |
190 | or %g6, %g7, %g6; \ | 190 | or %g6, %g7, %g6; \ |
191 | ba,a,pt %xcc, sun4v_itsb_miss; | 191 | nop; |
192 | 192 | ||
193 | #define SUN4V_DTSB_MISS \ | 193 | #define SUN4V_DTSB_MISS \ |
194 | ldxa [%g0] ASI_SCRATCHPAD, %g2; \ | 194 | ldxa [%g0] ASI_SCRATCHPAD, %g2; \ |
195 | ldx [%g2 + HV_FAULT_D_ADDR_OFFSET], %g4; \ | 195 | ldx [%g2 + HV_FAULT_D_ADDR_OFFSET], %g4; \ |
196 | ldx [%g2 + HV_FAULT_D_CTX_OFFSET], %g5; \ | 196 | ldx [%g2 + HV_FAULT_D_CTX_OFFSET], %g5; \ |
197 | srlx %g4, 22, %g7; \ | 197 | srlx %g4, 22, %g7; \ |
198 | sllx %g5, 48, %g6; \ | 198 | sllx %g5, 48, %g6; \ |
199 | brz,pn %g5, kvmap_dtlb_4v; \ | 199 | ba,pt %xcc, sun4v_dtsb_miss; \ |
200 | or %g6, %g7, %g6; \ | 200 | or %g6, %g7, %g6; \ |
201 | ba,a,pt %xcc, sun4v_dtsb_miss; | 201 | nop; |
202 | 202 | ||
203 | /* Before touching these macros, you owe it to yourself to go and | 203 | /* Before touching these macros, you owe it to yourself to go and |
204 | * see how arch/sparc64/kernel/winfixup.S works... -DaveM | 204 | * see how arch/sparc64/kernel/winfixup.S works... -DaveM |