]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc5xxx/start.S
Merge branch 'master' of git://git.denx.de/u-boot-samsung
[u-boot] / arch / powerpc / cpu / mpc5xxx / start.S
index 8b683b1997d3c9a1de7b127d62ea2b1511a406e7..38c0bd7c17794e3d8c72be6c856454e0d8f75bda 100644 (file)
@@ -25,6 +25,7 @@
 /*
  *  U-Boot - Startup Code for MPC5xxx CPUs
  */
+#include <asm-offsets.h>
 #include <config.h>
 #include <mpc5xxx.h>
 #include <timestamp.h>
@@ -668,10 +669,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)
+       stw     r4,0(r3)
+       beq-    5f
        stw     r0,0(r4)
-       bdnz    3b
+5:     bdnz    3b
 4:
 clear_bss:
        /*