Skip to content

Commit

Permalink
[SPARC64]: Fix indexing into kpte_linear_bitmap.
Browse files Browse the repository at this point in the history
Need to shift back up by 3 bits to get 8-byte entry
index.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 97c4b6f commit 6889331
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc64/kernel/ktlb.S
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ kvmap_dtlb_tsb4m_miss:

/* Divide by 64 to get the offset into the bitmask. */
srlx %g5, 6, %g5
sllx %g5, 3, %g5

/* kern_linear_pte_xor[((mask & bit) ? 1 : 0)] */
ldx [%g2 + %g5], %g2
Expand Down

0 comments on commit 6889331

Please sign in to comment.