summaryrefslogtreecommitdiffstats
path: root/arch/arc/lib/start.S
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2015-02-25 18:10:18 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2015-04-03 09:47:49 +0300
commitf56d625ee07a1ffb424e6c9278dd84b534e0bc1e (patch)
treea7ad80be0bd94982b195e6ab3d17e46d97314718 /arch/arc/lib/start.S
parent97ee47bdaba7421261d8568cd517f89275a42319 (diff)
downloadtalos-obmc-uboot-f56d625ee07a1ffb424e6c9278dd84b534e0bc1e.tar.gz
talos-obmc-uboot-f56d625ee07a1ffb424e6c9278dd84b534e0bc1e.zip
arc: get rid of CONFIG_SYS_GENERIC_GLOBAL_DATA
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>
Diffstat (limited to 'arch/arc/lib/start.S')
-rw-r--r--arch/arc/lib/start.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arc/lib/start.S b/arch/arc/lib/start.S
index 82045aeb6d..48ee86e54a 100644
--- a/arch/arc/lib/start.S
+++ b/arch/arc/lib/start.S
@@ -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
OpenPOWER on IntegriCloud