ARM: 8534/1: virt: fix hyp-stub build for pre-ARMv7 CPUs
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Fri, 19 Feb 2016 10:04:45 +0000 (11:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 22 Feb 2016 11:39:41 +0000 (11:39 +0000)
commit8d9f49136770e8a49c4efd5a4a5b23f75fefaaea
tree7703e4aa3f9980963f0d7ea25e9de5ef48dacc26
parent8ff97fa31333e8d0f4f7029798d9c7d59359b05c
ARM: 8534/1: virt: fix hyp-stub build for pre-ARMv7 CPUs

ARMv6 CPUs do not have virtualisation extensions, but hyp-stub.S is
still included into the image to keep it generic. In order to use ARMv7
instructions during HYP initialisation, add -march=armv7-a flag to
hyp-stub's build.

On an ARMv6 CPU, __hyp_stub_install returns as soon as it detects that
the mode isn't HYP, so we will never reach those instructions.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/Makefile
arch/arm/kernel/Makefile
This page took 0.026151 seconds and 5 git commands to generate.