diff options
author | Benoît Thébaudeau | 2013-04-11 09:35:42 +0000 |
---|---|---|
committer | Albert ARIBAUD | 2013-04-12 07:55:05 +0200 |
commit | 508611bcb7d2a0fd5e7ead35c45f68b6e6c101ac (patch) | |
tree | a9809db7b9be19e98f90ba01fd9f56bc393fffa2 /arch/arm/cpu/arm946es | |
parent | 3ec9d6eb09ca799f2632a58012ef9603982a642d (diff) |
arm: start.S: Fix _TEXT_BASE for SPL
_TEXT_BASE must be set to CONFIG_SPL_TEXT_BASE for generic SPL, and to
CONFIG_SYS_TEXT_BASE for non-SPL builds.
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/arm946es')
-rw-r--r-- | arch/arm/cpu/arm946es/start.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm946es/start.S b/arch/arm/cpu/arm946es/start.S index 9dec35b5578..85adc62a626 100644 --- a/arch/arm/cpu/arm946es/start.S +++ b/arch/arm/cpu/arm946es/start.S @@ -89,7 +89,11 @@ _vectors_end: .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. |