diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2016-12-13 11:57:38 -0500 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2017-01-26 18:49:32 -0500 |
commit | 2add203169fd6bf419176e283f701d26944bce41 (patch) | |
tree | c8d7321d0f0387bf77c8119dd33e9b4b866750ec | |
parent | 4ad8622dc54895c0072ddc919a83ea2a2f05605f (diff) |
powerpc/32: Remove FIX_SRR1
FIX_SRR1() is defined as blank. Last useful instance of FIX_SRR1()
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: Scott Wood <oss@buserror.net>
-rw-r--r-- | arch/powerpc/include/asm/ppc_asm.h | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/entry_32.S | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/head_32.S | 3 |
3 files changed, 0 insertions, 8 deletions
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index 025833b8df9f..359c44341761 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h | |||
@@ -505,7 +505,6 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601) | |||
505 | #define MTMSRD(r) mtmsrd r | 505 | #define MTMSRD(r) mtmsrd r |
506 | #define MTMSR_EERI(reg) mtmsrd reg,1 | 506 | #define MTMSR_EERI(reg) mtmsrd reg,1 |
507 | #else | 507 | #else |
508 | #define FIX_SRR1(ra, rb) | ||
509 | #ifndef CONFIG_40x | 508 | #ifndef CONFIG_40x |
510 | #define RFI rfi | 509 | #define RFI rfi |
511 | #else | 510 | #else |
diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index 5742dbdbee46..980626ac34ee 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S | |||
@@ -292,7 +292,6 @@ stack_ovf: | |||
292 | lis r9,StackOverflow@ha | 292 | lis r9,StackOverflow@ha |
293 | addi r9,r9,StackOverflow@l | 293 | addi r9,r9,StackOverflow@l |
294 | LOAD_MSR_KERNEL(r10,MSR_KERNEL) | 294 | LOAD_MSR_KERNEL(r10,MSR_KERNEL) |
295 | FIX_SRR1(r10,r12) | ||
296 | mtspr SPRN_SRR0,r9 | 295 | mtspr SPRN_SRR0,r9 |
297 | mtspr SPRN_SRR1,r10 | 296 | mtspr SPRN_SRR1,r10 |
298 | SYNC | 297 | SYNC |
@@ -417,7 +416,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX) | |||
417 | mtlr r4 | 416 | mtlr r4 |
418 | mtcr r5 | 417 | mtcr r5 |
419 | lwz r7,_NIP(r1) | 418 | lwz r7,_NIP(r1) |
420 | FIX_SRR1(r8, r0) | ||
421 | lwz r2,GPR2(r1) | 419 | lwz r2,GPR2(r1) |
422 | lwz r1,GPR1(r1) | 420 | lwz r1,GPR1(r1) |
423 | mtspr SPRN_SRR0,r7 | 421 | mtspr SPRN_SRR0,r7 |
@@ -951,7 +949,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX) | |||
951 | .globl exc_exit_restart | 949 | .globl exc_exit_restart |
952 | exc_exit_restart: | 950 | exc_exit_restart: |
953 | lwz r12,_NIP(r1) | 951 | lwz r12,_NIP(r1) |
954 | FIX_SRR1(r9,r10) | ||
955 | mtspr SPRN_SRR0,r12 | 952 | mtspr SPRN_SRR0,r12 |
956 | mtspr SPRN_SRR1,r9 | 953 | mtspr SPRN_SRR1,r9 |
957 | REST_4GPRS(9, r1) | 954 | REST_4GPRS(9, r1) |
@@ -1294,7 +1291,6 @@ _GLOBAL(enter_rtas) | |||
1294 | 1: tophys(r9,r1) | 1291 | 1: tophys(r9,r1) |
1295 | lwz r8,INT_FRAME_SIZE+4(r9) /* get return address */ | 1292 | lwz r8,INT_FRAME_SIZE+4(r9) /* get return address */ |
1296 | lwz r9,8(r9) /* original msr value */ | 1293 | lwz r9,8(r9) /* original msr value */ |
1297 | FIX_SRR1(r9,r0) | ||
1298 | addi r1,r1,INT_FRAME_SIZE | 1294 | addi r1,r1,INT_FRAME_SIZE |
1299 | li r0,0 | 1295 | li r0,0 |
1300 | mtspr SPRN_SPRG_RTAS,r0 | 1296 | mtspr SPRN_SPRG_RTAS,r0 |
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index 9d963547d243..1607be7c0ef2 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S | |||
@@ -869,7 +869,6 @@ __secondary_start: | |||
869 | 869 | ||
870 | /* enable MMU and jump to start_secondary */ | 870 | /* enable MMU and jump to start_secondary */ |
871 | li r4,MSR_KERNEL | 871 | li r4,MSR_KERNEL |
872 | FIX_SRR1(r4,r5) | ||
873 | lis r3,start_secondary@h | 872 | lis r3,start_secondary@h |
874 | ori r3,r3,start_secondary@l | 873 | ori r3,r3,start_secondary@l |
875 | mtspr SPRN_SRR0,r3 | 874 | mtspr SPRN_SRR0,r3 |
@@ -977,7 +976,6 @@ start_here: | |||
977 | ori r4,r4,2f@l | 976 | ori r4,r4,2f@l |
978 | tophys(r4,r4) | 977 | tophys(r4,r4) |
979 | li r3,MSR_KERNEL & ~(MSR_IR|MSR_DR) | 978 | li r3,MSR_KERNEL & ~(MSR_IR|MSR_DR) |
980 | FIX_SRR1(r3,r5) | ||
981 | mtspr SPRN_SRR0,r4 | 979 | mtspr SPRN_SRR0,r4 |
982 | mtspr SPRN_SRR1,r3 | 980 | mtspr SPRN_SRR1,r3 |
983 | SYNC | 981 | SYNC |
@@ -1001,7 +999,6 @@ start_here: | |||
1001 | 999 | ||
1002 | /* Now turn on the MMU for real! */ | 1000 | /* Now turn on the MMU for real! */ |
1003 | li r4,MSR_KERNEL | 1001 | li r4,MSR_KERNEL |
1004 | FIX_SRR1(r4,r5) | ||
1005 | lis r3,start_kernel@h | 1002 | lis r3,start_kernel@h |
1006 | ori r3,r3,start_kernel@l | 1003 | ori r3,r3,start_kernel@l |
1007 | mtspr SPRN_SRR0,r3 | 1004 | mtspr SPRN_SRR0,r3 |