From: Miquel Raynal Date: Tue, 7 May 2019 12:18:50 +0000 (+0200) Subject: arm: spear: Reference the link register with LR instead of R14 X-Git-Tag: v2019.10-rc1~35^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08ad72ae811af7ba21c5c270cfe5c7f52c9b8edb;p=oweals%2Fu-boot.git arm: spear: Reference the link register with LR instead of R14 The link register is stored in R14. ARM assembly code allows to use the 'lr' name to reference it instead of 'r14' which is not very meaningful. Do the substitution to ease the reading. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese --- diff --git a/arch/arm/cpu/arm926ejs/spear/start.S b/arch/arm/cpu/arm926ejs/spear/start.S index 25895f01ac..2bc9d5990e 100644 --- a/arch/arm/cpu/arm926ejs/spear/start.S +++ b/arch/arm/cpu/arm926ejs/spear/start.S @@ -35,7 +35,7 @@ reset: * SPL has to return back to BootROM in a few cases (eg. Ethernet boot, * UART boot, USB boot): save registers in BootROM's stack. */ - push {r0-r12,r14} + push {r0-r12,lr} bl cpu_init_crit pop {r0-r12,pc}