diff options
author | Daniel Schwierzeck | 2016-06-04 16:13:21 +0200 |
---|---|---|
committer | Daniel Schwierzeck | 2016-11-30 16:11:46 +0100 |
commit | 924ad86638705fe37db98812f355260669f0f043 (patch) | |
tree | 696292f12a5b94bac8b6daa4606313809e97f019 /arch/mips/cpu | |
parent | c3e72ab80135a19ac6eb2585b69de0acf19b87c1 (diff) |
MIPS: add possibility to setup initial stack and global data in SRAM
This adds a new Kconfig option CONFIG_MIPS_INIT_STACK_IN_SRAM which
a SoC can select if it supports some kind of SRAM. Together with
CONFIG_SYS_INIT_SP_ADDR the initial stack and global data can be
set up in that SRAM. This can be used to provide a C environment
also for lowlevel_init().
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/cpu')
-rw-r--r-- | arch/mips/cpu/start.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S index f1040c27b60..6740fdf9ed2 100644 --- a/arch/mips/cpu/start.S +++ b/arch/mips/cpu/start.S @@ -234,6 +234,11 @@ wr_done: nop #endif +#ifdef CONFIG_MIPS_INIT_STACK_IN_SRAM + /* Set up initial stack and global data */ + setup_stack_gd +#endif + #ifndef CONFIG_SKIP_LOWLEVEL_INIT # ifdef CONFIG_SYS_MIPS_CACHE_INIT_RAM_LOAD /* Initialize any external memory */ @@ -255,8 +260,10 @@ wr_done: # endif #endif +#ifndef CONFIG_MIPS_INIT_STACK_IN_SRAM /* Set up initial stack and global data */ setup_stack_gd +#endif move a0, zero # a0 <-- boot_flags = 0 PTR_LA t9, board_init_f |