1 #ifndef _ASM_X86_PGTABLE_3LEVEL_DEFS_H
2 #define _ASM_X86_PGTABLE_3LEVEL_DEFS_H
5 #include <linux/types.h>
11 typedef u64 pgprotval_t;
15 unsigned long pte_low, pte_high;
19 #endif /* !__ASSEMBLY__ */
21 #define SHARED_KERNEL_PMD 0
23 #define PAGETABLE_LEVELS 3
26 * PGDIR_SHIFT determines what a top-level page table entry can map
28 #define PGDIR_SHIFT 30
29 #define PTRS_PER_PGD 4
32 * PMD_SHIFT determines the size of the area a middle-level
36 #define PTRS_PER_PMD 512
39 * entries per page directory level
41 #define PTRS_PER_PTE 512
44 #endif /* _ASM_X86_PGTABLE_3LEVEL_DEFS_H */