]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm_intcm/start.S
arm: relocate_code() is no longer noreturn
[u-boot] / arch / arm / cpu / arm_intcm / start.S
index 04d08458f374edd106634745c07f47f2cd7cc0a6..d0f8a48bfc5cebac8f4e9abb0fcf6dae0b7073c4 100644 (file)
@@ -85,7 +85,11 @@ _fiq:
 
 .globl _TEXT_BASE
 _TEXT_BASE:
-       .word   CONFIG_SYS_TEXT_BASE /* address of _start in the linked image */
+#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_TEXT_BASE)
+       .word   CONFIG_SPL_TEXT_BASE
+#else
+       .word   CONFIG_SYS_TEXT_BASE
+#endif
 
 /*
  * These are defined in the board-specific linker script.
@@ -150,9 +154,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code: