diff options
Diffstat (limited to 'include/asm-i386/pgtable-3level-defs.h')
-rw-r--r-- | include/asm-i386/pgtable-3level-defs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-i386/pgtable-3level-defs.h b/include/asm-i386/pgtable-3level-defs.h new file mode 100644 index 000000000000..eb3a1ea88671 --- /dev/null +++ b/include/asm-i386/pgtable-3level-defs.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef _I386_PGTABLE_3LEVEL_DEFS_H | ||
2 | #define _I386_PGTABLE_3LEVEL_DEFS_H | ||
3 | |||
4 | /* | ||
5 | * PGDIR_SHIFT determines what a top-level page table entry can map | ||
6 | */ | ||
7 | #define PGDIR_SHIFT 30 | ||
8 | #define PTRS_PER_PGD 4 | ||
9 | |||
10 | /* | ||
11 | * PMD_SHIFT determines the size of the area a middle-level | ||
12 | * page table can map | ||
13 | */ | ||
14 | #define PMD_SHIFT 21 | ||
15 | #define PTRS_PER_PMD 512 | ||
16 | |||
17 | /* | ||
18 | * entries per page directory level | ||
19 | */ | ||
20 | #define PTRS_PER_PTE 512 | ||
21 | |||
22 | #endif /* _I386_PGTABLE_3LEVEL_DEFS_H */ | ||