Skip to contentSkip to conversation

PowerPC: Don't destroy fixup table while doing fixups

PATCH New Joakim Tjernlund 2 participants 3 messages Nov 4, 2010 – Nov 14, 2010 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PowerPC: Don't destroy fixup table while doing fixups

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.

---
 arch/powerpc/cpu/74xx_7xx/start.S |    2 +-
 arch/powerpc/cpu/mpc512x/start.S  |    2 +-
 arch/powerpc/cpu/mpc5xx/start.S   |    2 +-
 arch/powerpc/cpu/mpc5xxx/start.S  |    2 +-
 arch/powerpc/cpu/mpc8220/start.S  |    2 +-
 arch/powerpc/cpu/mpc824x/start.S  |    2 +-
 arch/powerpc/cpu/mpc8260/start.S  |    2 +-
 arch/powerpc/cpu/mpc83xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc85xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc86xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc8xx/start.S   |    2 +-
 arch/powerpc/cpu/ppc4xx/start.S   |    2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)
arch/powerpc/cpu/74xx_7xx/start.S +1 -1
index ce0fa3d..7209de2 100644
@@ -724,7 +724,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
arch/powerpc/cpu/mpc512x/start.S +1 -1
index 64eb657..4bef94f 100644
@@ -617,7 +617,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
arch/powerpc/cpu/mpc5xx/start.S +1 -1
index 560c706..0def169 100644
@@ -466,7 +466,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
arch/powerpc/cpu/mpc5xxx/start.S +1 -1
index b8c1cb5..b593305 100644
@@ -682,7 +682,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
arch/powerpc/cpu/mpc8220/start.S +1 -1
index 6b63821..7576f59 100644
@@ -655,7 +655,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
arch/powerpc/cpu/mpc824x/start.S +1 -1
index a32e68b..4208f62 100644
@@ -597,7 +597,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
arch/powerpc/cpu/mpc8260/start.S +1 -1
index 5c2e251..5126bbd 100644
@@ -917,7 +917,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
arch/powerpc/cpu/mpc83xx/start.S +1 -1
index d3ec580..c5eae27 100644
@@ -988,7 +988,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
arch/powerpc/cpu/mpc85xx/start.S +1 -1
index 19e9735..b88851e 100644
@@ -1027,7 +1027,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
arch/powerpc/cpu/mpc86xx/start.S +1 -1
index 3f05e53..3760f40 100644
@@ -741,7 +741,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
arch/powerpc/cpu/mpc8xx/start.S +1 -1
index 1b729eb..1524df8 100644
@@ -597,7 +597,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
arch/powerpc/cpu/ppc4xx/start.S +1 -1
index 27709c4..cd5b44c 100644
@@ -1604,7 +1604,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
Signature · 1 line
1.7.2.2
#1 lore raw

PATCH 1/1 PowerPC: Don't destroy fixup table while doing fixups

Ping?

Quoted 185 lines

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.

---
 arch/powerpc/cpu/74xx_7xx/start.S |    2 +-
 arch/powerpc/cpu/mpc512x/start.S  |    2 +-
 arch/powerpc/cpu/mpc5xx/start.S   |    2 +-
 arch/powerpc/cpu/mpc5xxx/start.S  |    2 +-
 arch/powerpc/cpu/mpc8220/start.S  |    2 +-
 arch/powerpc/cpu/mpc824x/start.S  |    2 +-
 arch/powerpc/cpu/mpc8260/start.S  |    2 +-
 arch/powerpc/cpu/mpc83xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc85xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc86xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc8xx/start.S   |    2 +-
 arch/powerpc/cpu/ppc4xx/start.S   |    2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)
arch/powerpc/cpu/74xx_7xx/start.S +1 -1
index ce0fa3d..7209de2 100644
@@ -724,7 +724,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
arch/powerpc/cpu/mpc512x/start.S +1 -1
index 64eb657..4bef94f 100644
@@ -617,7 +617,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
arch/powerpc/cpu/mpc5xx/start.S +1 -1
index 560c706..0def169 100644
@@ -466,7 +466,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
arch/powerpc/cpu/mpc5xxx/start.S +1 -1
index b8c1cb5..b593305 100644
@@ -682,7 +682,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
arch/powerpc/cpu/mpc8220/start.S +1 -1
index 6b63821..7576f59 100644
@@ -655,7 +655,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
arch/powerpc/cpu/mpc824x/start.S +1 -1
index a32e68b..4208f62 100644
@@ -597,7 +597,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
arch/powerpc/cpu/mpc8260/start.S +1 -1
index 5c2e251..5126bbd 100644
@@ -917,7 +917,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
arch/powerpc/cpu/mpc83xx/start.S +1 -1
index d3ec580..c5eae27 100644
@@ -988,7 +988,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
arch/powerpc/cpu/mpc85xx/start.S +1 -1
index 19e9735..b88851e 100644
@@ -1027,7 +1027,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
arch/powerpc/cpu/mpc86xx/start.S +1 -1
index 3f05e53..3760f40 100644
@@ -741,7 +741,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
arch/powerpc/cpu/mpc8xx/start.S +1 -1
index 1b729eb..1524df8 100644
@@ -597,7 +597,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
arch/powerpc/cpu/ppc4xx/start.S +1 -2
index 27709c4..cd5b44c 100644
@@ -1604,7 +1604,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
--

1.7.2.2

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#2 lore raw

PATCH 1/1 PowerPC: Don't destroy fixup table while doing fixups

In reply to Joakim Tjernlund

Dear Joakim Tjernlund,

Quoted 6 lines · In message <[email protected]>…

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.

Quoted 14 lines
---
 arch/powerpc/cpu/74xx_7xx/start.S |    2 +-
 arch/powerpc/cpu/mpc512x/start.S  |    2 +-
 arch/powerpc/cpu/mpc5xx/start.S   |    2 +-
 arch/powerpc/cpu/mpc5xxx/start.S  |    2 +-
 arch/powerpc/cpu/mpc8220/start.S  |    2 +-
 arch/powerpc/cpu/mpc824x/start.S  |    2 +-
 arch/powerpc/cpu/mpc8260/start.S  |    2 +-
 arch/powerpc/cpu/mpc83xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc85xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc86xx/start.S  |    2 +-
 arch/powerpc/cpu/mpc8xx/start.S   |    2 +-
 arch/powerpc/cpu/ppc4xx/start.S   |    2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Do not follow where the path may lead....go instead where there is no
path and leave a trail.