arm: spear: Reference the link register with LR instead of R14
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 May 2019 12:18:50 +0000 (14:18 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jul 2019 14:05:15 +0000 (10:05 -0400)
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 <miquel.raynal@bootlin.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/cpu/arm926ejs/spear/start.S

index 25895f0..2bc9d59 100644 (file)
@@ -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}