]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arc: get rid of CONFIG_SYS_GENERIC_GLOBAL_DATA
authorAlexey Brodkin <abrodkin@synopsys.com>
Wed, 25 Feb 2015 15:10:18 +0000 (18:10 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 3 Apr 2015 06:47:49 +0000 (09:47 +0300)
As discussed on mailing list we're drifting away from
CONFIG_SYS_GENERIC_GLOBAL_DATA in favour to use of board_init_f_mem()
for global data.

So do this for ARC architecture.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/include/asm/config.h
arch/arc/lib/start.S

index 8936f5cdf79be40875c6624c5ab3f48ab7f9824a..d2d791988e2abbbfef49ff8595792297f311210a 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef __ASM_ARC_CONFIG_H_
 #define __ASM_ARC_CONFIG_H_
 
-#define CONFIG_SYS_GENERIC_GLOBAL_DATA
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 #define CONFIG_ARCH_EARLY_INIT_R
 
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