Skip to content

Commit 148151a

Browse files
chleroympe
authored andcommitted
powerpc/32: Remove CLR_TOP32
CLR_TOP32() is defined as blank. Last useful instance of CLR_TOP32() was removed by commit 40ef8cb ("powerpc: Get 64-bit configs to compile with ARCH=powerpc") in 2005. Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 6b8cb66 commit 148151a

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

arch/powerpc/include/asm/ppc_asm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)
511511
#endif
512512
#define MTMSRD(r) mtmsr r
513513
#define MTMSR_EERI(reg) mtmsr reg
514-
#define CLR_TOP32(r)
515514
#endif
516515

517516
#endif /* __KERNEL__ */

arch/powerpc/kernel/entry_32.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPE)
654654
#endif /* CONFIG_SMP */
655655

656656
tophys(r0,r4)
657-
CLR_TOP32(r0)
658657
mtspr SPRN_SPRG_THREAD,r0 /* Update current THREAD phys addr */
659658
lwz r1,KSP(r4) /* Load new stack pointer */
660659

arch/powerpc/kernel/head_32.S

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ __secondary_hold_acknowledge:
266266

267267

268268
#define EXCEPTION_PROLOG_2 \
269-
CLR_TOP32(r11); \
270269
stw r10,_CCR(r11); /* save registers */ \
271270
stw r12,GPR12(r11); \
272271
stw r9,GPR9(r11); \
@@ -862,7 +861,6 @@ __secondary_start:
862861
/* ptr to phys current thread */
863862
tophys(r4,r2)
864863
addi r4,r4,THREAD /* phys address of our thread_struct */
865-
CLR_TOP32(r4)
866864
mtspr SPRN_SPRG_THREAD,r4
867865
li r3,0
868866
mtspr SPRN_SPRG_RTAS,r3 /* 0 => not in RTAS */
@@ -949,7 +947,6 @@ start_here:
949947
/* ptr to phys current thread */
950948
tophys(r4,r2)
951949
addi r4,r4,THREAD /* init task's THREAD */
952-
CLR_TOP32(r4)
953950
mtspr SPRN_SPRG_THREAD,r4
954951
li r3,0
955952
mtspr SPRN_SPRG_RTAS,r3 /* 0 => not in RTAS */

arch/powerpc/kernel/head_8xx.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ turn_on_mmu:
151151

152152

153153
#define EXCEPTION_PROLOG_2 \
154-
CLR_TOP32(r11); \
155154
stw r10,_CCR(r11); /* save registers */ \
156155
stw r12,GPR12(r11); \
157156
stw r9,GPR9(r11); \

0 commit comments

Comments
 (0)