[PATCH] bugfix: don't rely on lr in arm_cpu_lowlevel_init
张忠山
zzs213 at 126.com
Thu Feb 27 03:14:08 EST 2014
From: 张忠山 <zzs0213 at gmail.com>
Signed-off-by: 张忠山 <zzs213 at 126.com>
---
arch/arm/cpu/lowlevel.S | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/cpu/lowlevel.S b/arch/arm/cpu/lowlevel.S
index 307b447..c615d5b 100644
--- a/arch/arm/cpu/lowlevel.S
+++ b/arch/arm/cpu/lowlevel.S
@@ -4,6 +4,7 @@
.section ".text_bare_init_","ax"
ENTRY(arm_cpu_lowlevel_init)
+ mov r2, lr
/* set the cpu to SVC32 mode */
mrs r12, cpsr
bic r12, r12, #0x1f
@@ -35,5 +36,5 @@ ENTRY(arm_cpu_lowlevel_init)
mcr p15, 0, r12, c1, c0, 0
- mov pc, lr
+ mov pc, r2
ENDPROC(arm_cpu_lowlevel_init)
--
1.7.9.5
More information about the barebox
mailing list