Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 */ |