xref: /linux/arch/riscv/include/asm/pgtable-32.h (revision 6c363eafc4d637ac4bd83d4a7dd06dd3cfbe7c5f)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2012 Regents of the University of California
4  */
5 
6 #ifndef _ASM_RISCV_PGTABLE_32_H
7 #define _ASM_RISCV_PGTABLE_32_H
8 
9 #include <asm-generic/pgtable-nopmd.h>
10 #include <linux/const.h>
11 
12 /* Size of region mapped by a page global directory */
13 #define PGDIR_SHIFT     22
14 #define PGDIR_SIZE      (_AC(1, UL) << PGDIR_SHIFT)
15 #define PGDIR_MASK      (~(PGDIR_SIZE - 1))
16 
17 #define MAX_POSSIBLE_PHYSMEM_BITS 34
18 
19 #endif /* _ASM_RISCV_PGTABLE_32_H */
20