projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mips: add an option to support initialize SRAM for initial stack
[oweals/u-boot.git]
/
arch
/
mips
/
cpu
/
start.S
diff --git
a/arch/mips/cpu/start.S
b/arch/mips/cpu/start.S
index 784b8be81469964298ceb1ccb20347c0697c59dc..dd93df9e4a1ffe6d089ac2f8199cda9b1d1d0388 100644
(file)
--- a/
arch/mips/cpu/start.S
+++ b/
arch/mips/cpu/start.S
@@
-217,6
+217,13
@@
wr_done:
#endif
#ifdef CONFIG_MIPS_INIT_STACK_IN_SRAM
+#ifdef CONFIG_MIPS_SRAM_INIT
+ /* Initialize the SRAM first */
+ PTR_LA t9, mips_sram_init
+ jalr t9
+ nop
+#endif
+
/* Set up initial stack and global data */
setup_stack_gd