]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MIPS: mips32/start.S: rework relocation info check
authorGabor Juhos <juhosg@openwrt.org>
Thu, 13 Jun 2013 10:59:28 +0000 (12:59 +0200)
committerTom Rini <trini@ti.com>
Wed, 24 Jul 2013 13:51:05 +0000 (09:51 -0400)
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>
arch/mips/cpu/mips32/start.S

index f5ebe79564cfe863fa404c2792a15a600955e3aa..70ad198cc9d2a54888d447a8641345bc5faa491a 100644 (file)
@@ -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