arm64: Add FIX_HOLE to permanent fixed addresses
authorLaura Abbott <lauraa@codeaurora.org>
Wed, 26 Nov 2014 00:14:16 +0000 (00:14 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 26 Nov 2014 11:32:17 +0000 (11:32 +0000)
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>
arch/arm64/include/asm/fixmap.h

index db26a2f..9ef6eca 100644 (file)
@@ -31,6 +31,7 @@
  *
  */
 enum fixed_addresses {
+       FIX_HOLE,
        FIX_EARLYCON_MEM_BASE,
        __end_of_permanent_fixed_addresses,