18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2012 Regents of the University of California
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _ASM_RISCV_PGTABLE_32_H
78c2ecf20Sopenharmony_ci#define _ASM_RISCV_PGTABLE_32_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <asm-generic/pgtable-nopmd.h>
108c2ecf20Sopenharmony_ci#include <linux/const.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* Size of region mapped by a page global directory */
138c2ecf20Sopenharmony_ci#define PGDIR_SHIFT     22
148c2ecf20Sopenharmony_ci#define PGDIR_SIZE      (_AC(1, UL) << PGDIR_SHIFT)
158c2ecf20Sopenharmony_ci#define PGDIR_MASK      (~(PGDIR_SIZE - 1))
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define MAX_POSSIBLE_PHYSMEM_BITS 34
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#endif /* _ASM_RISCV_PGTABLE_32_H */
20