mips: start.S: avoid overwriting outside gd when clearing global data in stack
[oweals/u-boot.git] / arch / mips / cpu / start.S
index 1d21b2324a7658a209a0bc3d63a25004c8e74b60..784b8be81469964298ceb1ccb20347c0697c59dc 100644 (file)
@@ -71,8 +71,9 @@
        move    t0, k0
 1:
        PTR_S   zero, 0(t0)
+       PTR_ADDIU t0, PTRSIZE
        blt     t0, t1, 1b
-        PTR_ADDIU t0, PTRSIZE
+        nop
 
 #if CONFIG_VAL(SYS_MALLOC_F_LEN)
        PTR_S   sp, GD_MALLOC_BASE(k0)  # gd->malloc_base offset