1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2012 Regents of the University of California
6 #ifndef _ASM_RISCV_PGTABLE_32_H
7 #define _ASM_RISCV_PGTABLE_32_H
9 #include <asm-generic/pgtable-nopmd.h>
10 #include <linux/const.h>
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))
17 #define MAX_POSSIBLE_PHYSMEM_BITS 34
19 #endif /* _ASM_RISCV_PGTABLE_32_H */