diff options
author | Michael Neuling <mikey@neuling.org> | 2012-06-25 09:33:10 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-10 05:17:55 -0400 |
commit | c75df6f96c59beed8632e3aced5fb4faabaa6c5b (patch) | |
tree | b21ce9394028ec4520a71d87391dad8ab29edd67 /arch/powerpc/lib/copyuser_power7.S | |
parent | 564aa5cfd3e33ef69a5ca6c170a0fe79c6805e52 (diff) |
powerpc: Fix usage of register macros getting ready for %r0 change
Anything that uses a constructed instruction (ie. from ppc-opcode.h),
need to use the new R0 macro, as %r0 is not going to work.
Also convert usages of macros where we are just determining an offset
(usually for a load/store), like:
std r14,STK_REG(r14)(r1)
Can't use STK_REG(r14) as %r14 doesn't work in the STK_REG macro since
it's just calculating an offset.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/lib/copyuser_power7.S')
-rw-r--r-- | arch/powerpc/lib/copyuser_power7.S | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/arch/powerpc/lib/copyuser_power7.S b/arch/powerpc/lib/copyuser_power7.S index 48e3f8c5768..c8680c0cc3e 100644 --- a/arch/powerpc/lib/copyuser_power7.S +++ b/arch/powerpc/lib/copyuser_power7.S | |||
@@ -57,9 +57,9 @@ | |||
57 | 57 | ||
58 | 58 | ||
59 | .Ldo_err4: | 59 | .Ldo_err4: |
60 | ld r16,STK_REG(r16)(r1) | 60 | ld r16,STK_REG(R16)(r1) |
61 | ld r15,STK_REG(r15)(r1) | 61 | ld r15,STK_REG(R15)(r1) |
62 | ld r14,STK_REG(r14)(r1) | 62 | ld r14,STK_REG(R14)(r1) |
63 | .Ldo_err3: | 63 | .Ldo_err3: |
64 | bl .exit_vmx_usercopy | 64 | bl .exit_vmx_usercopy |
65 | ld r0,STACKFRAMESIZE+16(r1) | 65 | ld r0,STACKFRAMESIZE+16(r1) |
@@ -68,15 +68,15 @@ | |||
68 | #endif /* CONFIG_ALTIVEC */ | 68 | #endif /* CONFIG_ALTIVEC */ |
69 | 69 | ||
70 | .Ldo_err2: | 70 | .Ldo_err2: |
71 | ld r22,STK_REG(r22)(r1) | 71 | ld r22,STK_REG(R22)(r1) |
72 | ld r21,STK_REG(r21)(r1) | 72 | ld r21,STK_REG(R21)(r1) |
73 | ld r20,STK_REG(r20)(r1) | 73 | ld r20,STK_REG(R20)(r1) |
74 | ld r19,STK_REG(r19)(r1) | 74 | ld r19,STK_REG(R19)(r1) |
75 | ld r18,STK_REG(r18)(r1) | 75 | ld r18,STK_REG(R18)(r1) |
76 | ld r17,STK_REG(r17)(r1) | 76 | ld r17,STK_REG(R17)(r1) |
77 | ld r16,STK_REG(r16)(r1) | 77 | ld r16,STK_REG(R16)(r1) |
78 | ld r15,STK_REG(r15)(r1) | 78 | ld r15,STK_REG(R15)(r1) |
79 | ld r14,STK_REG(r14)(r1) | 79 | ld r14,STK_REG(R14)(r1) |
80 | .Lexit: | 80 | .Lexit: |
81 | addi r1,r1,STACKFRAMESIZE | 81 | addi r1,r1,STACKFRAMESIZE |
82 | .Ldo_err1: | 82 | .Ldo_err1: |
@@ -137,15 +137,15 @@ err1; stw r0,0(r3) | |||
137 | 137 | ||
138 | mflr r0 | 138 | mflr r0 |
139 | stdu r1,-STACKFRAMESIZE(r1) | 139 | stdu r1,-STACKFRAMESIZE(r1) |
140 | std r14,STK_REG(r14)(r1) | 140 | std r14,STK_REG(R14)(r1) |
141 | std r15,STK_REG(r15)(r1) | 141 | std r15,STK_REG(R15)(r1) |
142 | std r16,STK_REG(r16)(r1) | 142 | std r16,STK_REG(R16)(r1) |
143 | std r17,STK_REG(r17)(r1) | 143 | std r17,STK_REG(R17)(r1) |
144 | std r18,STK_REG(r18)(r1) | 144 | std r18,STK_REG(R18)(r1) |
145 | std r19,STK_REG(r19)(r1) | 145 | std r19,STK_REG(R19)(r1) |
146 | std r20,STK_REG(r20)(r1) | 146 | std r20,STK_REG(R20)(r1) |
147 | std r21,STK_REG(r21)(r1) | 147 | std r21,STK_REG(R21)(r1) |
148 | std r22,STK_REG(r22)(r1) | 148 | std r22,STK_REG(R22)(r1) |
149 | std r0,STACKFRAMESIZE+16(r1) | 149 | std r0,STACKFRAMESIZE+16(r1) |
150 | 150 | ||
151 | srdi r6,r5,7 | 151 | srdi r6,r5,7 |
@@ -192,15 +192,15 @@ err2; std r21,120(r3) | |||
192 | 192 | ||
193 | clrldi r5,r5,(64-7) | 193 | clrldi r5,r5,(64-7) |
194 | 194 | ||
195 | ld r14,STK_REG(r14)(r1) | 195 | ld r14,STK_REG(R14)(r1) |
196 | ld r15,STK_REG(r15)(r1) | 196 | ld r15,STK_REG(R15)(r1) |
197 | ld r16,STK_REG(r16)(r1) | 197 | ld r16,STK_REG(R16)(r1) |
198 | ld r17,STK_REG(r17)(r1) | 198 | ld r17,STK_REG(R17)(r1) |
199 | ld r18,STK_REG(r18)(r1) | 199 | ld r18,STK_REG(R18)(r1) |
200 | ld r19,STK_REG(r19)(r1) | 200 | ld r19,STK_REG(R19)(r1) |
201 | ld r20,STK_REG(r20)(r1) | 201 | ld r20,STK_REG(R20)(r1) |
202 | ld r21,STK_REG(r21)(r1) | 202 | ld r21,STK_REG(R21)(r1) |
203 | ld r22,STK_REG(r22)(r1) | 203 | ld r22,STK_REG(R22)(r1) |
204 | addi r1,r1,STACKFRAMESIZE | 204 | addi r1,r1,STACKFRAMESIZE |
205 | 205 | ||
206 | /* Up to 127B to go */ | 206 | /* Up to 127B to go */ |
@@ -440,9 +440,9 @@ err3; stvx vr0,r3,r11 | |||
440 | 7: sub r5,r5,r6 | 440 | 7: sub r5,r5,r6 |
441 | srdi r6,r5,7 | 441 | srdi r6,r5,7 |
442 | 442 | ||
443 | std r14,STK_REG(r14)(r1) | 443 | std r14,STK_REG(R14)(r1) |
444 | std r15,STK_REG(r15)(r1) | 444 | std r15,STK_REG(R15)(r1) |
445 | std r16,STK_REG(r16)(r1) | 445 | std r16,STK_REG(R16)(r1) |
446 | 446 | ||
447 | li r12,64 | 447 | li r12,64 |
448 | li r14,80 | 448 | li r14,80 |
@@ -477,9 +477,9 @@ err4; stvx vr0,r3,r16 | |||
477 | addi r3,r3,128 | 477 | addi r3,r3,128 |
478 | bdnz 8b | 478 | bdnz 8b |
479 | 479 | ||
480 | ld r14,STK_REG(r14)(r1) | 480 | ld r14,STK_REG(R14)(r1) |
481 | ld r15,STK_REG(r15)(r1) | 481 | ld r15,STK_REG(R15)(r1) |
482 | ld r16,STK_REG(r16)(r1) | 482 | ld r16,STK_REG(R16)(r1) |
483 | 483 | ||
484 | /* Up to 127B to go */ | 484 | /* Up to 127B to go */ |
485 | clrldi r5,r5,(64-7) | 485 | clrldi r5,r5,(64-7) |
@@ -625,9 +625,9 @@ err3; stvx vr11,r3,r11 | |||
625 | 7: sub r5,r5,r6 | 625 | 7: sub r5,r5,r6 |
626 | srdi r6,r5,7 | 626 | srdi r6,r5,7 |
627 | 627 | ||
628 | std r14,STK_REG(r14)(r1) | 628 | std r14,STK_REG(R14)(r1) |
629 | std r15,STK_REG(r15)(r1) | 629 | std r15,STK_REG(R15)(r1) |
630 | std r16,STK_REG(r16)(r1) | 630 | std r16,STK_REG(R16)(r1) |
631 | 631 | ||
632 | li r12,64 | 632 | li r12,64 |
633 | li r14,80 | 633 | li r14,80 |
@@ -670,9 +670,9 @@ err4; stvx vr15,r3,r16 | |||
670 | addi r3,r3,128 | 670 | addi r3,r3,128 |
671 | bdnz 8b | 671 | bdnz 8b |
672 | 672 | ||
673 | ld r14,STK_REG(r14)(r1) | 673 | ld r14,STK_REG(R14)(r1) |
674 | ld r15,STK_REG(r15)(r1) | 674 | ld r15,STK_REG(R15)(r1) |
675 | ld r16,STK_REG(r16)(r1) | 675 | ld r16,STK_REG(R16)(r1) |
676 | 676 | ||
677 | /* Up to 127B to go */ | 677 | /* Up to 127B to go */ |
678 | clrldi r5,r5,(64-7) | 678 | clrldi r5,r5,(64-7) |