]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Fix indexing into kpte_linear_bitmap.
authorDavid S. Miller <davem@sunset.davemloft.net>
Mon, 27 Feb 2006 07:09:37 +0000 (23:09 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:14:07 +0000 (01:14 -0800)
Need to shift back up by 3 bits to get 8-byte entry
index.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/ktlb.S

index efcf38b6e284a2f35a0490027d9e154017303e59..31da1e564c95e2ecdbabf13a55a5fda55391d9a4 100644 (file)
@@ -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