2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/arch/arm/nwfpe
Russell King 6ebbf2ce43 ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+
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).

We provide a new macro "ret" with all its variants for the condition
code which will resolve to the appropriate instruction.

Rather than doing this piecemeal, and miss some instances, change all
the "mov pc" instances to use the new macro, with the exception of
the "movs" instruction and the kprobes code.  This allows us to detect
the "mov pc, lr" case and fix it up - and also gives us the possibility
of deploying this for other registers depending on the CPU selection.

Reported-by: Will Deacon <will.deacon@arm.com>
Tested-by: Stephen Warren <swarren@nvidia.com> # Tegra Jetson TK1
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr> # mioa701_bootresume.S
Tested-by: Andrew Lunn <andrew@lunn.ch> # Kirkwood
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Tested-by: Tony Lindgren <tony@atomide.com> # OMAPs
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com> # Armada XP, 375, 385
Acked-by: Sekhar Nori <nsekhar@ti.com> # DaVinci
Acked-by: Christoffer Dall <christoffer.dall@linaro.org> # kvm/hyp
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> # PXA3xx
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> # Xen
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> # ARMv7M
Tested-by: Simon Horman <horms+renesas@verge.net.au> # Shmobile
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-07-18 12:29:04 +01:00
..
ARM-gcc.h [ARM] "extern inline" -> "static inline" 2007-10-12 23:43:17 +01:00
ChangeLog ARM: arch/arm/nwfpe/ChangeLog: Checkpatch cleanup 2010-05-24 20:40:11 +01:00
double_cpdo.c [PATCH] ARM: 2837/2: Re: ARM: Make NWFPE preempt safe 2005-08-03 19:49:17 +01:00
entry.S ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+ 2014-07-18 12:29:04 +01:00
extended_cpdo.c [PATCH] ARM: 2837/2: Re: ARM: Make NWFPE preempt safe 2005-08-03 19:49:17 +01:00
fpa11_cpdo.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
fpa11_cpdt.c [ARM] Convert asm/uaccess.h to linux/uaccess.h 2008-09-06 11:35:55 +01:00
fpa11_cprt.c [ARM] nwfpe: fix 'floatx80_is_nan' sparse warning 2009-05-15 12:49:14 +01:00
fpa11.c Disintegrate asm/system.h for ARM 2012-03-28 18:30:01 +01:00
fpa11.h [ARM] nwfpe: Add decleration for ExtendedCPDO 2009-05-15 12:49:08 +01:00
fpa11.inl [ARM] "extern inline" -> "static inline" 2007-10-12 23:43:17 +01:00
fpmodule.c arm: Use vsprintf extention %pf with builtin_return_address 2012-04-05 17:12:26 -07:00
fpmodule.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fpmodule.inl [PATCH] ARM: Remove global nwfpe register variable 2005-07-17 10:54:50 +01:00
fpopcode.c ARM: 7207/1: Use generic ARM instruction set condition code checks for nwfpe. 2011-12-13 08:52:02 +00:00
fpopcode.h ARM: 7207/1: Use generic ARM instruction set condition code checks for nwfpe. 2011-12-13 08:52:02 +00:00
fpsr.h ARM: arch/arm/nwfpe/fpsr.h: Checkpatch cleanup 2010-05-24 20:40:12 +01:00
Makefile ARM: Kill CONFIG_CPU_32 2009-12-18 16:07:53 +00:00
milieu.h Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
single_cpdo.c [PATCH] ARM: 2837/2: Re: ARM: Make NWFPE preempt safe 2005-08-03 19:49:17 +01:00
softfloat-macros Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
softfloat-specialize Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
softfloat.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
softfloat.h Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00