[U-Boot] [PATCH 3/5] arm: Allow lr to be saved by board code

Simon Glass sjg at chromium.org
Wed Feb 4 05:18:52 CET 2015


The link register value can be required on some boards (e.g. FEL mode on
sunxi) so stash it to r4 before jumping to save_boot_params().

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/arm/cpu/armv7/start.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S
index 0ba26f7..8207d66 100644
--- a/arch/arm/cpu/armv7/start.S
+++ b/arch/arm/cpu/armv7/start.S
@@ -33,6 +33,7 @@
 	.globl	reset
 
 reset:
+	mov	r4, lr
 	bl	save_boot_params
 	/*
 	 * disable interrupts (FIQ and IRQ), also set the cpu to SVC32 mode,
-- 
2.2.0.rc0.207.ga3a616c



More information about the U-Boot mailing list