aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/pgtable.h
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2011-11-22 12:30:29 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2011-12-08 05:30:39 -0500
commitdcfdae04bd92e8a2ea155db0e21e3bddc09e0a89 (patch)
tree815a5d36f6d80465ab33686a03af7be9485bfad1 /arch/arm/include/asm/pgtable.h
parentd675d0bc47f28c5414fbbe17fcc801f69c45b960 (diff)
ARM: LPAE: Introduce the 3-level page table format definitions
This patch introduces the pgtable-3level*.h files with definitions specific to the LPAE page table format (3 levels of page tables). Each table is 4KB and has 512 64-bit entries. An entry can point to a 40-bit physical address. The young, write and exec software bits share the corresponding hardware bits (negated). Other software bits use spare bits in the PTE. The patch also changes some variable types from unsigned long or int to pteval_t or pgprot_t. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/include/asm/pgtable.h')
-rw-r--r--arch/arm/include/asm/pgtable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index 977245b0875f..3ddcf66f5e04 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -25,7 +25,11 @@
25#include <mach/vmalloc.h> 25#include <mach/vmalloc.h>
26#include <asm/pgtable-hwdef.h> 26#include <asm/pgtable-hwdef.h>
27 27
28#ifdef CONFIG_ARM_LPAE
29#include <asm/pgtable-3level.h>
30#else
28#include <asm/pgtable-2level.h> 31#include <asm/pgtable-2level.h>
32#endif
29 33
30/* 34/*
31 * Just any arbitrary offset to the start of the vmalloc VM area: the 35 * Just any arbitrary offset to the start of the vmalloc VM area: the