summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/armv8
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-04 00:09:46 (GMT)
committerTom Rini <trini@konsulko.com>2016-03-15 19:13:00 (GMT)
commit9bb367a590feac21d674e4d2cee77702d4774819 (patch)
tree03ded1f537f9b0c2857f6efe1de441635206466b /arch/arm/include/asm/armv8
parent0691484ac1efb1981dfd1b38df9646128bafff32 (diff)
downloadu-boot-9bb367a590feac21d674e4d2cee77702d4774819.tar.xz
arm64: Disable TTBR1 maps in EL1
When running in EL1, AArch64 knows two page table maps. One with addresses that start with all zeros (TTBR0) and one with addresses that start with all ones (TTBR1). In U-Boot we don't care about the high up maps, so just disable them to ensure we don't walk an invalid page table by accident. Reported-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/arm/include/asm/armv8')
-rw-r--r--arch/arm/include/asm/armv8/mmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch/arm/include/asm/armv8/mmu.h
index 39ff745..0080ae6 100644
--- a/arch/arm/include/asm/armv8/mmu.h
+++ b/arch/arm/include/asm/armv8/mmu.h
@@ -154,6 +154,7 @@
#define TCR_TG0_4K (0 << 14)
#define TCR_TG0_64K (1 << 14)
#define TCR_TG0_16K (2 << 14)
+#define TCR_EPD1_DISABLE (1 << 23)
#ifndef CONFIG_SYS_FULL_VA
#define TCR_EL1_IPS_BITS (UL(3) << 32) /* 42 bits physical address */