PowerPC: Don't destroy fixup table while doing fixups
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 4 Nov 2010 18:02:00 +0000 (19:02 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 14 Nov 2010 22:25:33 +0000 (23:25 +0100)
The fixup procedure just stored a constant value in the
fixup table rather than just adjusting the table.
Although that doesn't seem to do any harm, it prevents
relocation more that once.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
12 files changed:
arch/powerpc/cpu/74xx_7xx/start.S
arch/powerpc/cpu/mpc512x/start.S
arch/powerpc/cpu/mpc5xx/start.S
arch/powerpc/cpu/mpc5xxx/start.S
arch/powerpc/cpu/mpc8220/start.S
arch/powerpc/cpu/mpc824x/start.S
arch/powerpc/cpu/mpc8260/start.S
arch/powerpc/cpu/mpc83xx/start.S
arch/powerpc/cpu/mpc85xx/start.S
arch/powerpc/cpu/mpc86xx/start.S
arch/powerpc/cpu/mpc8xx/start.S
arch/powerpc/cpu/ppc4xx/start.S

index 280781e165d8f669fe1f7bfb8507a99697263493..985e1ce70f0896176c58196e490b594aa77cb884 100644 (file)
@@ -712,7 +712,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index fe35190e796ac4b30f0ff0775e0b0305f00c2385..10557cf20f8cfeb85b83901601593918e9e653ae 100644 (file)
@@ -616,7 +616,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index 63449c3d4deb5a2f9138cfcee1011eb42e238235..3dbd23d0b827b9eead52f754d04e9251d563e2fd 100644 (file)
@@ -456,7 +456,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index ad546771fa3192f838689b2cde48a8c3ff26207d..38c0bd7c17794e3d8c72be6c856454e0d8f75bda 100644 (file)
@@ -671,7 +671,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index b029e84178860cef0a588583e9dd2f9c678e0b4f..ca4267870d47cd95e4fc14d5a01e5ff7a704929d 100644 (file)
@@ -644,7 +644,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index 616de58fb718ecccee73c7d42865c66570493370..0dd130038684b3b98bbdc9870f26d57a6f6e2d2b 100644 (file)
@@ -586,7 +586,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index 521a6399b2be1d146d59c6087af267a9306a1fa5..255a15eae42fcb088787cfb42ef1e4968cf0f867 100644 (file)
@@ -907,7 +907,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index a35697da0a73de8c4d1c673f59c1f2790457d792..515be4c871bc6c189ad91ec5a21a8cb2ce237f74 100644 (file)
@@ -955,7 +955,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index af7e39bec3d7c1d5cb6057e1d3fbd3281149a895..945c1b8477940c5c7760af298a8f25964c54ac83 100644 (file)
@@ -1040,7 +1040,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index 6127115696a437c91fa5ce31b595444a2dbfa753..4c29de61a24198dcc64bc8332fdfede210025e00 100644 (file)
@@ -730,7 +730,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index 9d022bf5413f91c4899c8e9efad2012685ae155a..6a16c26d66321ca16e3f3e038b2dc2e77c64e4f1 100644 (file)
@@ -587,7 +587,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b
index 363becc8071b05984f9db7035d548153ef3bca9f..65195f528a8d7c884f2531cef1760d14e5062e0c 100644 (file)
@@ -1611,7 +1611,7 @@ in_ram:
        lwzux   r0,r4,r11
        cmpwi   r0,0
        add     r0,r0,r11
-       stw     r10,0(r3)
+       stw     r4,0(r3)
        beq-    5f
        stw     r0,0(r4)
 5:     bdnz    3b