]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: virt: Avoid bx instruction for compatibility with <=ARMv4
authorDave Martin <dave.martin@linaro.org>
Fri, 30 Nov 2012 11:56:05 +0000 (11:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:00 +0000 (18:27 -0600)
commit6a20f49d70254c3ebf687d430bc079d295d4900d
tree27b77edee753b8ea5241027fb9e808656f50863f
parent53651f307e0dac429b7725622240e287716348c1
ARM: virt: Avoid bx instruction for compatibility with <=ARMv4

commit a4a12e008e292a81d312659529b71be2026ab355 upstream.

Non-T variants of ARMv4 do not support the bx instruction.

However, __hyp_stub_install is always called from the same
instruction set used to build the bulk of the kernel, so bx should
not be necessary.

This patch uses the traditional "mov pc" instead of bx.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
[will: fixed up remaining bx instruction]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/hyp-stub.S