1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_PGTABLE_2LEVEL_DEFS_H
3 #define _ASM_X86_PGTABLE_2LEVEL_DEFS_H
6 #include <linux/types.h>
8 typedef unsigned long pteval_t;
9 typedef unsigned long pmdval_t;
10 typedef unsigned long pudval_t;
11 typedef unsigned long p4dval_t;
12 typedef unsigned long pgdval_t;
13 typedef unsigned long pgprotval_t;
19 #endif /* !__ASSEMBLY__ */
21 #define SHARED_KERNEL_PMD 0
24 * traditional i386 two-level paging structure:
27 #define PGDIR_SHIFT 22
28 #define PTRS_PER_PGD 1024
32 * the i386 is two-level, so we don't really have any
33 * PMD directory physically.
36 #define PTRS_PER_PTE 1024
38 #endif /* _ASM_X86_PGTABLE_2LEVEL_DEFS_H */