]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/microblaze/cpu/start.S
microblaze: spl: Do not call mem_malloc_init and use early alloc
[karo-tx-uboot.git] / arch / microblaze / cpu / start.S
index cf9ee7e3e6ada4b1fb85767e722d355e9e9d26d1..953d3a15eef21c391f611bf01b346d187d79246f 100644 (file)
@@ -162,7 +162,11 @@ clear_bss:
 #endif
        brai    board_init_f
 #else
-       addi    r31, r0, CONFIG_SYS_SPL_MALLOC_END
+       addi    r31, r0, _gd
+#if defined(CONFIG_SYS_MALLOC_F_LEN)
+       addi    r6, r0, CONFIG_SPL_STACK_ADDR
+       swi     r6, r31, GD_MALLOC_BASE
+#endif
        brai    board_init_r
 #endif
 1:     bri     1b