MIPS: xburst/start.S: rework relocation info check
authorGabor Juhos <juhosg@openwrt.org>
Fri, 14 Jun 2013 12:47:10 +0000 (14:47 +0200)
committerTom Rini <trini@ti.com>
Wed, 24 Jul 2013 13:51:06 +0000 (09:51 -0400)
Make it similar to the code in mips{32,64}/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/xburst/start.S

index e5ff4e072459091eccd8d29074065eb73f66da1c..10dffb4a5cb84c1c740663f3a83c694e0ffdde0a 100644 (file)
@@ -139,10 +139,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