[U-Boot] [V3 09/15] arm1176: Fixed No relocation.
Zhong Hongbo
bocui107 at gmail.com
Sat Jul 28 11:35:42 CEST 2012
From: Zhong Hongbo <bocui107 at gmail.com>
When It do not need to relocat for u-boot,
the offset(r9) of relocation should be set zero.
Signed-off-by: Zhong Hongbo <bocui107 at gmail.com>
---
Change for V3:
- Replace mov with moveq.
Change for V2:
- Seprate some code.
---
arch/arm/cpu/arm1176/start.S | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/cpu/arm1176/start.S b/arch/arm/cpu/arm1176/start.S
index 761b7fe..dd1b73b 100644
--- a/arch/arm/cpu/arm1176/start.S
+++ b/arch/arm/cpu/arm1176/start.S
@@ -252,6 +252,7 @@ stack_setup:
adr r0, _start
cmp r0, r6
+ moveq r9, #0
beq clear_bss /* skip relocation */
mov r1, r6 /* r1 <- scratch for copy_loop */
ldr r3, _bss_start_ofs
--
1.7.5.4
More information about the U-Boot
mailing list