aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-11-26 00:14:16 +0000
committerKees Cook <keescook@google.com>2015-10-07 13:12:10 -0700
commit792339d0876d703960c3bf6fda52b845c0365b21 (patch)
tree8f48e6244999924785db305dea7af2a8d77eb626
parent8f035a5911258b6701134a4b0bd2a3e90dc32673 (diff)
downloadlinux-linaro-stable-792339d0876d703960c3bf6fda52b845c0365b21.tar.gz
UPSTREAM: arm64: Add FIX_HOLE to permanent fixed addresses
Every other architecture with permanent fixed addresses has FIX_HOLE as the first entry. This seems to be designed as a debugging aid but there are a couple of side effects of not having FIX_HOLE: - If the first fixed address is 0, fix_to_virt -> virt_to_fix triggers a BUG_ON for the virtual address being equal to FIXADDR_TOP - fix_to_virt may return a value outside of FIXADDR_START and FIXADDR_TOP which may look like a bug to a developer. Match up with other architectures and make everything clearer by adding FIX_HOLE. Signed-off-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com> (cherry picked from commit dab78b6dcb2bfc90038f35ada826844273dde4d6) Signed-off-by: Tomasz Figa <tfiga@chromium.org> Bug: 24475017 Change-Id: I495db3781f5b937c5e0cc47d53b18718335f78c6 Signed-off-by: Kees Cook <keescook@google.com>
-rw-r--r--arch/arm64/include/asm/fixmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/fixmap.h b/arch/arm64/include/asm/fixmap.h
index db26a2f2b7a7..9ef6eca905ca 100644
--- a/arch/arm64/include/asm/fixmap.h
+++ b/arch/arm64/include/asm/fixmap.h
@@ -31,6 +31,7 @@
*
*/
enum fixed_addresses {
+ FIX_HOLE,
FIX_EARLYCON_MEM_BASE,
__end_of_permanent_fixed_addresses,