summaryrefslogtreecommitdiffstats
path: root/cpu/arm926ejs/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm926ejs/start.S')
-rw-r--r--cpu/arm926ejs/start.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpu/arm926ejs/start.S b/cpu/arm926ejs/start.S
index cd728c5108..d62940b071 100644
--- a/cpu/arm926ejs/start.S
+++ b/cpu/arm926ejs/start.S
@@ -139,10 +139,11 @@ reset:
* we do sys-critical inits only at reboot,
* not when booting from ram!
*/
-#ifdef CONFIG_INIT_CRITICAL
+#ifndef CONFIG_SKIP_LOWLEVEL_INIT
bl cpu_init_crit
#endif
+#ifndef CONFIG_SKIP_RELOCATE_UBOOT
relocate: /* relocate U-Boot to RAM */
adr r0, _start /* r0 <- current position of code */
ldr r1, _TEXT_BASE /* test if we run from flash or RAM */
@@ -159,6 +160,7 @@ copy_loop:
stmia r1!, {r3-r10} /* copy to target address [r1] */
cmp r0, r2 /* until source end addreee [r2] */
ble copy_loop
+#endif /* CONFIG_SKIP_RELOCATE_UBOOT */
/* Set up the stack */
stack_setup:
OpenPOWER on IntegriCloud