arm64: Default kernel pages should be contiguous
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 7 Oct 2015 17:00:22 +0000 (12:00 -0500)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 8 Oct 2015 17:39:46 +0000 (18:39 +0100)
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>
arch/arm64/include/asm/pgtable.h

index 1a1a6efa75e5529be6eeb0877c25ba77be2a0012..3f481ef42c07b76965a42e3714fed4d8b9c9118f 100644 (file)
@@ -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)
This page took 0.112856 seconds and 5 git commands to generate.