Thread (1 message) 1 message, 1 author, 2014-07-01

[PATCH] ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+ (part1)

From: robert.jarzmik@free.fr (Robert Jarzmik)
Date: 2014-07-01 22:42:06
Also in: kvm, linux-crypto, linux-omap, linux-samsung-soc, linux-sh, linux-tegra

Russell King [off-list ref] writes:
ARMv6 and greater introduced a new instruction ("bx") which can be used
to return from function calls.  Recent CPUs perform better when the
"bx lr" instruction is used rather than the "mov pc, lr" instruction,
and this sequence is strongly recommended to be used by the ARM
architecture manual (section A.4.1.1).
For ARMv5 - XScale, and more specificaly the mioa701_bootresume.S path (suspend
to RAM) :
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>

Cheers.

--
Robert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help