]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arc/lib/start.S
arc: get rid of CONFIG_SYS_GENERIC_GLOBAL_DATA
[karo-tx-uboot.git] / arch / arc / lib / start.S
index 82045aeb6dd5a5e0b739e4eae6e5a107dbba0745..48ee86e54adf506ebcf26c0eb91cea1c0675635f 100644 (file)
@@ -22,6 +22,14 @@ ENTRY(_start)
        bl      dcache_disable
        bl      icache_disable
 
+       /* Allocate and zero GD, update SP */
+       mov     %r0, %sp
+       bl      board_init_f_mem
+
+       /* Update stack- and frame-pointers */
+       mov     %sp, %r0
+       mov     %fp, %sp
+
        /* Zero the one and only argument of "board_init_f" */
        mov_s   %r0, 0
        j       board_init_f