1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_PGTABLE_32_TYPES_H
3 #define _ASM_X86_PGTABLE_32_TYPES_H
6 * The Linux x86 paging architecture is 'compile-time dual-mode', it
7 * implements both the traditional 2-level x86 page tables and the
8 * newer 3-level PAE-mode page tables.
11 # include <asm/pgtable-3level_types.h>
12 # define PMD_SIZE (1UL << PMD_SHIFT)
13 # define PMD_MASK (~(PMD_SIZE - 1))
15 # include <asm/pgtable-2level_types.h>
18 #define pgtable_l5_enabled() 0
20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
21 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
23 #endif /* _ASM_X86_PGTABLE_32_TYPES_H */