xref: /kvm-unit-tests/lib/riscv/asm/page.h (revision 0cc3a351b925928827baa4b69cf0e46ff5837083)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _ASMRISCV_PAGE_H_
3 #define _ASMRISCV_PAGE_H_
4 
5 #ifndef __ASSEMBLER__
6 
7 typedef unsigned long pgd_t;
8 typedef unsigned long pte_t;
9 typedef unsigned long pgprot_t;
10 typedef unsigned long pteval_t;
11 
12 #define pte_val(x)		((pteval_t)(x))
13 #define pgprot_val(x)		((pteval_t)(x))
14 #define __pte(x)		((pte_t)(x))
15 #define __pgprot(x)		((pgprot_t)(x))
16 
17 #endif /* !__ASSEMBLER__ */
18 
19 #include <asm-generic/page.h>
20 
21 #endif /* _ASMRISCV_PAGE_H_ */
22