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/ldstfp.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/ldstfp.S')
-rw-r--r-- | arch/powerpc/lib/ldstfp.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/lib/ldstfp.S b/arch/powerpc/lib/ldstfp.S index 6a85380520b6..3abae6bc7b4b 100644 --- a/arch/powerpc/lib/ldstfp.S +++ b/arch/powerpc/lib/ldstfp.S | |||
@@ -330,13 +330,13 @@ _GLOBAL(do_lxvd2x) | |||
330 | MTMSRD(r7) | 330 | MTMSRD(r7) |
331 | isync | 331 | isync |
332 | beq cr7,1f | 332 | beq cr7,1f |
333 | STXVD2X(0,r1,r8) | 333 | STXVD2X(0,R1,R8) |
334 | 1: li r9,-EFAULT | 334 | 1: li r9,-EFAULT |
335 | 2: LXVD2X(0,0,r4) | 335 | 2: LXVD2X(0,0,R4) |
336 | li r9,0 | 336 | li r9,0 |
337 | 3: beq cr7,4f | 337 | 3: beq cr7,4f |
338 | bl put_vsr | 338 | bl put_vsr |
339 | LXVD2X(0,r1,r8) | 339 | LXVD2X(0,R1,R8) |
340 | 4: PPC_LL r0,STKFRM+PPC_LR_STKOFF(r1) | 340 | 4: PPC_LL r0,STKFRM+PPC_LR_STKOFF(r1) |
341 | mtlr r0 | 341 | mtlr r0 |
342 | MTMSRD(r6) | 342 | MTMSRD(r6) |
@@ -358,13 +358,13 @@ _GLOBAL(do_stxvd2x) | |||
358 | MTMSRD(r7) | 358 | MTMSRD(r7) |
359 | isync | 359 | isync |
360 | beq cr7,1f | 360 | beq cr7,1f |
361 | STXVD2X(0,r1,r8) | 361 | STXVD2X(0,R1,R8) |
362 | bl get_vsr | 362 | bl get_vsr |
363 | 1: li r9,-EFAULT | 363 | 1: li r9,-EFAULT |
364 | 2: STXVD2X(0,0,r4) | 364 | 2: STXVD2X(0,0,R4) |
365 | li r9,0 | 365 | li r9,0 |
366 | 3: beq cr7,4f | 366 | 3: beq cr7,4f |
367 | LXVD2X(0,r1,r8) | 367 | LXVD2X(0,R1,R8) |
368 | 4: PPC_LL r0,STKFRM+PPC_LR_STKOFF(r1) | 368 | 4: PPC_LL r0,STKFRM+PPC_LR_STKOFF(r1) |
369 | mtlr r0 | 369 | mtlr r0 |
370 | MTMSRD(r6) | 370 | MTMSRD(r6) |