aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-27 02:09:37 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:14:07 -0500
commit6889331a1260e42b0275f42c13d6342d6cc1a03d (patch)
tree5e8b06abbbe62316e9c8288af8d7e967be6e9163 /arch/sparc64/kernel
parent97c4b6f95afadea5846b78ce589d25de2a245c56 (diff)
[SPARC64]: Fix indexing into kpte_linear_bitmap.
Need to shift back up by 3 bits to get 8-byte entry index. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r--arch/sparc64/kernel/ktlb.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ktlb.S b/arch/sparc64/kernel/ktlb.S
index efcf38b6e284..31da1e564c95 100644
--- a/arch/sparc64/kernel/ktlb.S
+++ b/arch/sparc64/kernel/ktlb.S
@@ -163,6 +163,7 @@ kvmap_dtlb_tsb4m_miss:
163 163
164 /* Divide by 64 to get the offset into the bitmask. */ 164 /* Divide by 64 to get the offset into the bitmask. */
165 srlx %g5, 6, %g5 165 srlx %g5, 6, %g5
166 sllx %g5, 3, %g5
166 167
167 /* kern_linear_pte_xor[((mask & bit) ? 1 : 0)] */ 168 /* kern_linear_pte_xor[((mask & bit) ? 1 : 0)] */
168 ldx [%g2 + %g5], %g2 169 ldx [%g2 + %g5], %g2