From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Tue, 3 Feb 2015 21:18:52 -0700 Subject: [U-Boot] [PATCH 3/5] arm: Allow lr to be saved by board code In-Reply-To: <1423023534-4318-1-git-send-email-sjg@chromium.org> References: <1423023534-4318-1-git-send-email-sjg@chromium.org> Message-ID: <1423023534-4318-3-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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