]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/armv7/start.S
arm: relocate_code() is no longer noreturn
[u-boot] / arch / arm / cpu / armv7 / start.S
index 36a4c3cfda1cfdcd4a0431305ae79068fb2fa795..0146c769ee73d96a2914e0fbf1b280ca0cb1d8fd 100644 (file)
@@ -81,7 +81,11 @@ _end_vect:
 
 .globl _TEXT_BASE
 _TEXT_BASE:
+#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.
@@ -163,9 +167,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.
  */
 ENTRY(relocate_code)
        mov     r4, r0  /* save addr_sp */