powerpc/32: Remove CLR_TOP32
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 5 Aug 2016 11:27:59 +0000 (13:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Sep 2016 21:54:22 +0000 (07:54 +1000)
CLR_TOP32() is defined as blank. Last useful instance of CLR_TOP32()
was removed by commit 40ef8cbc6d360 ("powerpc: Get 64-bit configs to
compile with ARCH=powerpc") in 2005.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/head_32.S
arch/powerpc/kernel/head_8xx.S

index bb566854ff2a87701f6418aabb1bfce620d929c4..c73750b0d9fad05449ea261ed2aa58a1f6890c3c 100644 (file)
@@ -511,7 +511,6 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)
 #endif
 #define MTMSRD(r)      mtmsr   r
 #define MTMSR_EERI(reg)        mtmsr   reg
-#define CLR_TOP32(r)
 #endif
 
 #endif /* __KERNEL__ */
index 9899032230b4bb15ce7eaf4e80ee3888b9ec4499..83428a283fa075fcac6ec48676c44d2078427a6f 100644 (file)
@@ -654,7 +654,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPE)
 #endif /* CONFIG_SMP */
 
        tophys(r0,r4)
-       CLR_TOP32(r0)
        mtspr   SPRN_SPRG_THREAD,r0     /* Update current THREAD phys addr */
        lwz     r1,KSP(r4)      /* Load new stack pointer */
 
index dc0488b6f6e15f57a4e06997c41e2fd985c1e929..a3f821eb7e9ab9985df07d3631d4dec2ecf03baf 100644 (file)
@@ -266,7 +266,6 @@ __secondary_hold_acknowledge:
 
 
 #define EXCEPTION_PROLOG_2     \
-       CLR_TOP32(r11);         \
        stw     r10,_CCR(r11);          /* save registers */ \
        stw     r12,GPR12(r11); \
        stw     r9,GPR9(r11);   \
@@ -862,7 +861,6 @@ __secondary_start:
        /* ptr to phys current thread */
        tophys(r4,r2)
        addi    r4,r4,THREAD    /* phys address of our thread_struct */
-       CLR_TOP32(r4)
        mtspr   SPRN_SPRG_THREAD,r4
        li      r3,0
        mtspr   SPRN_SPRG_RTAS,r3       /* 0 => not in RTAS */
@@ -949,7 +947,6 @@ start_here:
        /* ptr to phys current thread */
        tophys(r4,r2)
        addi    r4,r4,THREAD    /* init task's THREAD */
-       CLR_TOP32(r4)
        mtspr   SPRN_SPRG_THREAD,r4
        li      r3,0
        mtspr   SPRN_SPRG_RTAS,r3       /* 0 => not in RTAS */
index 43ddaae42baf7dc6541f4b0679198e557e9f1fb5..3a185c51ce8f657d47709f12ffabb5e6480eff7f 100644 (file)
@@ -151,7 +151,6 @@ turn_on_mmu:
 
 
 #define EXCEPTION_PROLOG_2     \
-       CLR_TOP32(r11);         \
        stw     r10,_CCR(r11);          /* save registers */ \
        stw     r12,GPR12(r11); \
        stw     r9,GPR9(r11);   \