]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PPC32: Fix latent PPC44x tlb bug
authorAndrew Morton <akpm@osdl.org>
Fri, 2 Apr 2004 12:05:58 +0000 (04:05 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 2 Apr 2004 12:05:58 +0000 (04:05 -0800)
From: Matt Porter <mporter@kernel.crashing.org>

Patch fixes a latent bug in the PPC44x tlb management code.

arch/ppc/kernel/head_44x.S

index 01a3c7e0ecf7a4bad15309c0d6a200c45dd2a03d..8c177e3be51577344d80de2940578e7688b665e0 100644 (file)
@@ -860,6 +860,7 @@ finish_tlb_load:
        lis     r13, tlb_44x_index@ha
        lwz     r14, tlb_44x_index@l(r13)
        /* Load the TLB high watermark */
+       lis     r13, tlb_44x_hwater@ha
        lwz     r11, tlb_44x_hwater@l(r13)
 
        /* Increment, rollover, and store TLB index */
@@ -869,6 +870,7 @@ finish_tlb_load:
        li      r14, 0
 7:
        /* Store the next available TLB index */
+       lis     r13, tlb_44x_index@ha
        stw     r14, tlb_44x_index@l(r13)
 
        lwz     r13, 0(r12)                     /* Get MS word of PTE */