summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorJeremy Linton <jeremy.linton@arm.com>2015-10-07 12:00:22 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2015-10-08 18:39:46 +0100
commit06f90d2527845c4767207f54280df2c5ca11e82b (patch)
tree69d00aeafecb80fe66240e0354ebb25dc20bde4c /arch/arm64/include
parent93ef666a094ff9c9fc8d7cf1774ef0b92e270a75 (diff)
downloadblackbird-op-linux-06f90d2527845c4767207f54280df2c5ca11e82b.tar.gz
blackbird-op-linux-06f90d2527845c4767207f54280df2c5ca11e82b.zip
arm64: Default kernel pages should be contiguous
The default page attributes for a PMD being broken should have the CONT bit set. Create a new definition for an early boot range of PTE's that are contiguous. Signed-off-by: Jeremy Linton <jeremy.linton@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/pgtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index 1a1a6efa75e5..3f481ef42c07 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -72,6 +72,7 @@ extern void __pgd_error(const char *file, int line, unsigned long val);
#define PAGE_KERNEL __pgprot(_PAGE_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE)
#define PAGE_KERNEL_EXEC __pgprot(_PAGE_DEFAULT | PTE_UXN | PTE_DIRTY | PTE_WRITE)
+#define PAGE_KERNEL_EXEC_CONT __pgprot(_PAGE_DEFAULT | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_CONT)
#define PAGE_HYP __pgprot(_PAGE_DEFAULT | PTE_HYP)
#define PAGE_HYP_DEVICE __pgprot(PROT_DEVICE_nGnRE | PTE_HYP)
OpenPOWER on IntegriCloud