summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm920t
diff options
context:
space:
mode:
authorZhong Hongbo <bocui107@gmail.com>2012-09-01 20:49:52 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-10-04 16:41:15 +0200
commit76abfa57817ada6d4119056097cc32610343fd90 (patch)
tree03aaf4975c06dd12088a32ac19f11b77c97c61dd /arch/arm/cpu/arm920t
parentc6734261ec1aefc1abed533950520f1e9f785c3f (diff)
downloadu-boot-imx-76abfa57817ada6d4119056097cc32610343fd90.zip
u-boot-imx-76abfa57817ada6d4119056097cc32610343fd90.tar.gz
u-boot-imx-76abfa57817ada6d4119056097cc32610343fd90.tar.bz2
arm: Fixed the offset for the no relocation.
When the u-boot address of destination equal to __start, no relocation. relocation offset(r9) = 0. Signed-off-by: Zhong Hongbo <bocui107@gmail.com> Tested-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/cpu/arm920t')
-rw-r--r--arch/arm/cpu/arm920t/start.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm920t/start.S b/arch/arm/cpu/arm920t/start.S
index 9b8604e..14c9156 100644
--- a/arch/arm/cpu/arm920t/start.S
+++ b/arch/arm/cpu/arm920t/start.S
@@ -210,6 +210,7 @@ stack_setup:
adr r0, _start
cmp r0, r6
+ moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
beq clear_bss /* skip relocation */
mov r1, r6 /* r1 <- scratch for copy_loop */
ldr r3, _bss_start_ofs