summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm_intcm/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/arm_intcm/start.S')
-rw-r--r--arch/arm/cpu/arm_intcm/start.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/cpu/arm_intcm/start.S b/arch/arm/cpu/arm_intcm/start.S
index 04d0845..a69fb17 100644
--- a/arch/arm/cpu/arm_intcm/start.S
+++ b/arch/arm/cpu/arm_intcm/start.S
@@ -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.