]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/cpu/mpc86xx/start.S
powerpc: do not fixup NULL ptrs
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc86xx / start.S
index c499db48fd10c244532d2776f1bbbbd01c8eb392..3817f19d53521e5c96fa7e5a121a031eab83353e 100644 (file)
@@ -727,10 +727,12 @@ in_ram:
        beq     4f
 3:     lwzu    r4,4(r3)
        lwzux   r0,r4,r11
+       cmpwi   r0,0
        add     r0,r0,r11
        stw     r10,0(r3)
+       beq-    5f
        stw     r0,0(r4)
-       bdnz    3b
+5:     bdnz    3b
 4:
 /* clear_bss: */
        /*