]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Switch to adrp for loading the stub vectors
authorLaura Abbott <lauraa@codeaurora.org>
Fri, 21 Nov 2014 21:50:39 +0000 (21:50 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 25 Nov 2014 15:56:44 +0000 (15:56 +0000)
commit7046e20ee1ef51be0e68e3a3ad688cc7429b6d3c
tree82360a06c38a70370d48a777520c5ea4245064bf
parentd39378dad9f730441fc0de0b04cf68a9c8527d5f
arm64: Switch to adrp for loading the stub vectors

The hyp stub vectors are currently loaded using adr. This
instruction has a +/- 1MB range for the loading address. If
the alignment for sections is changed the address may be more
than 1MB away, resulting in reclocation errors. Switch to using
adrp for getting the address to ensure we aren't affected by the
location of the __hyp_stub_vectors.

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/head.S