Skip to content

Commit c17e332

Browse files
committed
ppc64: Use SPRN_ prefix for special purpose register names
Now that we are using the merged reg.h we have to use the SPRN_xxx names rather than the xxx names. Signed-off-by: Paul Mackerras <[email protected]>
1 parent 69a80d3 commit c17e332

File tree

2 files changed

+112
-112
lines changed

2 files changed

+112
-112
lines changed

arch/ppc64/kernel/entry.S

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ syscall_exit_trace_cont:
191191
ld r1,GPR1(r1)
192192
mtlr r4
193193
mtcr r5
194-
mtspr SRR0,r7
195-
mtspr SRR1,r8
194+
mtspr SPRN_SRR0,r7
195+
mtspr SPRN_SRR1,r8
196196
rfid
197197
b . /* prevent speculative execution */
198198

@@ -531,7 +531,7 @@ restore:
531531
mtctr r3
532532
mtlr r0
533533
ld r3,_XER(r1)
534-
mtspr XER,r3
534+
mtspr SPRN_XER,r3
535535

536536
REST_8GPRS(5, r1)
537537

@@ -543,12 +543,12 @@ restore:
543543
mtmsrd r0,1
544544

545545
ld r0,_MSR(r1)
546-
mtspr SRR1,r0
546+
mtspr SPRN_SRR1,r0
547547

548548
ld r2,_CCR(r1)
549549
mtcrf 0xFF,r2
550550
ld r2,_NIP(r1)
551-
mtspr SRR0,r2
551+
mtspr SPRN_SRR0,r2
552552

553553
ld r0,GPR0(r1)
554554
ld r2,GPR2(r1)
@@ -643,7 +643,7 @@ _GLOBAL(enter_rtas)
643643
std r4,_CCR(r1)
644644
mfctr r5
645645
std r5,_CTR(r1)
646-
mfspr r6,XER
646+
mfspr r6,SPRN_XER
647647
std r6,_XER(r1)
648648
mfdar r7
649649
std r7,_DAR(r1)
@@ -697,14 +697,14 @@ _GLOBAL(enter_rtas)
697697
ld r5,RTASENTRY(r4) /* get the rtas->entry value */
698698
ld r4,RTASBASE(r4) /* get the rtas->base value */
699699

700-
mtspr SRR0,r5
701-
mtspr SRR1,r6
700+
mtspr SPRN_SRR0,r5
701+
mtspr SPRN_SRR1,r6
702702
rfid
703703
b . /* prevent speculative execution */
704704

705705
_STATIC(rtas_return_loc)
706706
/* relocation is off at this point */
707-
mfspr r4,SPRG3 /* Get PACA */
707+
mfspr r4,SPRN_SPRG3 /* Get PACA */
708708
SET_REG_TO_CONST(r5, KERNELBASE)
709709
sub r4,r4,r5 /* RELOC the PACA base pointer */
710710

@@ -718,8 +718,8 @@ _STATIC(rtas_return_loc)
718718
LOADADDR(r3,.rtas_restore_regs)
719719
ld r4,PACASAVEDMSR(r4) /* Restore our MSR */
720720

721-
mtspr SRR0,r3
722-
mtspr SRR1,r4
721+
mtspr SPRN_SRR0,r3
722+
mtspr SPRN_SRR1,r4
723723
rfid
724724
b . /* prevent speculative execution */
725725

@@ -730,14 +730,14 @@ _STATIC(rtas_restore_regs)
730730
REST_8GPRS(14, r1) /* Restore the non-volatiles */
731731
REST_10GPRS(22, r1) /* ditto */
732732

733-
mfspr r13,SPRG3
733+
mfspr r13,SPRN_SPRG3
734734

735735
ld r4,_CCR(r1)
736736
mtcr r4
737737
ld r5,_CTR(r1)
738738
mtctr r5
739739
ld r6,_XER(r1)
740-
mtspr XER,r6
740+
mtspr SPRN_XER,r6
741741
ld r7,_DAR(r1)
742742
mtdar r7
743743
ld r8,_DSISR(r1)
@@ -774,7 +774,7 @@ _GLOBAL(enter_prom)
774774
std r4,_CCR(r1)
775775
mfctr r5
776776
std r5,_CTR(r1)
777-
mfspr r6,XER
777+
mfspr r6,SPRN_XER
778778
std r6,_XER(r1)
779779
mfdar r7
780780
std r7,_DAR(r1)
@@ -827,7 +827,7 @@ _GLOBAL(enter_prom)
827827
ld r5,_CTR(r1)
828828
mtctr r5
829829
ld r6,_XER(r1)
830-
mtspr XER,r6
830+
mtspr SPRN_XER,r6
831831
ld r7,_DAR(r1)
832832
mtdar r7
833833
ld r8,_DSISR(r1)

0 commit comments

Comments
 (0)