]> err.no Git - linux-2.6/commitdiff
[PATCH] ppc32/8xx: Fix r3 trashing due to 8MB TLB page instantiation
authorMarcelo Tosatti <marcelo@kvack.org>
Fri, 5 May 2006 20:09:29 +0000 (17:09 -0300)
committerPaul Mackerras <paulus@samba.org>
Tue, 9 May 2006 06:03:11 +0000 (16:03 +1000)
Instantiation of 8MB pages on the TLB cache for the kernel static
mapping trashes r3 register on !CONFIG_8xx_CPU6 configurations.
This ensures r3 gets saved and restored.

Signed-off-by: Marcelo Tosatti <marcelo@kvack.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/kernel/head_8xx.S

index ec53c7d65f2b39e7a43a07d50d4d22d228523986..7a2f20583be406beb0f42cb16f64e3a514fd1a04 100644 (file)
@@ -355,9 +355,7 @@ InstructionTLBMiss:
 
        . = 0x1200
 DataStoreTLBMiss:
-#ifdef CONFIG_8xx_CPU6
        stw     r3, 8(r0)
-#endif
        DO_8xx_CPU6(0x3f80, r3)
        mtspr   SPRN_M_TW, r10  /* Save a couple of working registers */
        mfcr    r10
@@ -417,9 +415,7 @@ DataStoreTLBMiss:
        lwz     r11, 0(r0)
        mtcr    r11
        lwz     r11, 4(r0)
-#ifdef CONFIG_8xx_CPU6
        lwz     r3, 8(r0)
-#endif
        rfi
 
 /* This is an instruction TLB error on the MPC8xx.  This could be due