summaryrefslogtreecommitdiff
path: root/cpu/arm1136/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm1136/start.S')
-rw-r--r--cpu/arm1136/start.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/arm1136/start.S b/cpu/arm1136/start.S
index 2da16e7..0312856 100644
--- a/cpu/arm1136/start.S
+++ b/cpu/arm1136/start.S
@@ -210,10 +210,10 @@ relocate: /* relocate U-Boot to RAM */
ldr r1, =_armboot_start
cmp r0, r1 /* don't reloc during debug */
beq stack_setup
- ldr r2, _TEXT_BASE
+ ldr r2, _armboot_start
sub r0, r1, r0
sub r0, r2, r0
- ldr r1, _TEXT_BASE
+ mov r1, r2
ldr r2, _armboot_start
ldr r3, _bss_start
sub r2, r3, r2 /* r2 <- size of armboot */