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