]> Pileus Git - ~andy/linux/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)
committerWill Deacon <will.deacon@arm.com>
Thu, 10 Jan 2013 21:08:22 +0000 (21:08 +0000)
commita4a12e008e292a81d312659529b71be2026ab355
tree184dad4b209335a554ea5dc9d25c6e097f061d66
parent9931faca02c604c22335f5a935a501bb2ace6e20
ARM: virt: Avoid bx instruction for compatibility with <=ARMv4

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.

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