Skip to content

Commit

Permalink
[SPARC64]: Fix sun4v mna winfixup handling.
Browse files Browse the repository at this point in the history
We were clobbering a base register before we were done
using it.  Fix a comment typo while we're here.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent c4f8ef7 commit bcc28ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/sparc64/kernel/sun4v_tlb_miss.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/* DEST = (VADDR >> 22)
*
* Branch to ZERO_CTX_LABEL is context is zero.
* Branch to ZERO_CTX_LABEL if context is zero.
*/
#define COMPUTE_TAG_TARGET(DEST, VADDR, CTX, ZERO_CTX_LABEL) \
srlx VADDR, 22, DEST; \
Expand Down Expand Up @@ -314,10 +314,10 @@ sun4v_mna:
nop

SET_GL(1)
ldxa [%g0] ASI_SCRATCHPAD, %g5
ldx [%g5 + HV_FAULT_D_ADDR_OFFSET], %g5
ldxa [%g0] ASI_SCRATCHPAD, %g2
ldx [%g2 + HV_FAULT_D_ADDR_OFFSET], %g5
mov HV_FAULT_TYPE_UNALIGNED, %g3
ldx [%g5 + HV_FAULT_D_CTX_OFFSET], %g4
ldx [%g2 + HV_FAULT_D_CTX_OFFSET], %g4
sllx %g3, 16, %g3
or %g4, %g3, %g4
ba,pt %xcc, winfix_mna
Expand Down

0 comments on commit bcc28ee

Please sign in to comment.