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