1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_PGTABLE_32_TYPES_H
3#define _ASM_X86_PGTABLE_32_TYPES_H
4
5/*
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.
9 */
10#ifdef CONFIG_X86_PAE
11# include <asm/pgtable-3level_types.h>
12# define PMD_SIZE (1UL << PMD_SHIFT)
13# define PMD_MASK (~(PMD_SIZE - 1))
14#else
15# include <asm/pgtable-2level_types.h>
16#endif
17
18#define pgtable_l5_enabled() 0
19
20#define PGDIR_SIZE (1UL << PGDIR_SHIFT)
21#define PGDIR_MASK (~(PGDIR_SIZE - 1))
22
23#endif /* _ASM_X86_PGTABLE_32_TYPES_H */
24

source code of linux/arch/x86/include/asm/pgtable_32_types.h