提交 f30765b7 编写于 作者: M Miquel Raynal 提交者: Tom Rini

arm: spear: Use PUSH/POP mnemonics when relevant

Quoting ARM "RealView Compilation Tools Assembler Guide v4.0":

        PUSH and POP are synonyms for STMDB and LDM (or LDMIA), with
        the base register sp (r13), and the adjusted address written
        back to the base register.
	PUSH and POP are the preferred mnemonic in these cases.

Let's follow this recommandation to ease the reading and substitute
LDMIA/STMDB operations with PUSH/POP mnemonics.
Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: NStefan Roese <sr@denx.de>
上级 76bdaaa1
......@@ -35,9 +35,9 @@ 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.
*/
stmdb sp!, {r0-r12,r14}
push {r0-r12,r14}
bl cpu_init_crit
ldmia sp!, {r0-r12,pc}
pop {r0-r12,pc}
/*
*************************************************************************
......@@ -67,6 +67,6 @@ cpu_init_crit:
/*
* Go setup Memory and board specific bits prior to relocation.
*/
stmdb sp!, {lr}
push {lr}
bl _main /* _main will call board_init_f */
ldmia sp!, {pc}
pop {pc}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册