summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-06-13 12:59:28 +0200
committerTom Rini <trini@ti.com>2013-07-24 09:51:05 -0400
commit691995f9ab672be1141ca8acfa7ff32508084782 (patch)
tree0dd922d4f1c3ab50bd3f2b663f4e6cea59b29e04
parent680cb2dc3a7ba1a9a5e8ca919d980e99906a767b (diff)
downloadu-boot-imx-691995f9ab672be1141ca8acfa7ff32508084782.zip
u-boot-imx-691995f9ab672be1141ca8acfa7ff32508084782.tar.gz
u-boot-imx-691995f9ab672be1141ca8acfa7ff32508084782.tar.bz2
MIPS: mips32/start.S: rework relocation info check
Make it similar to the code in mips64/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-rw-r--r--arch/mips/cpu/mips32/start.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/cpu/mips32/start.S b/arch/mips/cpu/mips32/start.S
index f5ebe79..70ad198 100644
--- a/arch/mips/cpu/mips32/start.S
+++ b/arch/mips/cpu/mips32/start.S
@@ -227,10 +227,10 @@ in_ram:
addi t1, 8
1:
- lw t3, -4(t1) # t3 <-- relocation info
+ lw t8, -4(t1) # t8 <-- relocation info
- sub t3, 3
- bnez t3, 2f # skip non R_MIPS_REL32 entries
+ li t3, 3
+ bne t8, t3, 2f # skip non R_MIPS_REL32 entries
nop
lw t3, -8(t1) # t3 <-- location to fix up in FLASH