1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * Copyright (C) 2012 Regents of the Universit 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/bits.h> 11 #include <linux/const.h> 12 13 /* Size of region mapped by a page global dire 14 #define PGDIR_SHIFT 22 15 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_S 16 #define PGDIR_MASK (~(PGDIR_SIZE - 1)) 17 18 #define MAX_POSSIBLE_PHYSMEM_BITS 34 19 20 /* 21 * rv32 PTE format: 22 * | XLEN-1 10 | 9 8 | 7 | 6 | 5 23 * PFN reserved for SW D A G 24 */ 25 #define _PAGE_PFN_MASK GENMASK(31, 10) 26 27 #define _PAGE_NOCACHE 0 28 #define _PAGE_IO 0 29 #define _PAGE_MTMASK 0 30 31 /* Set of bits to preserve across pte_modify() 32 #define _PAGE_CHG_MASK (~(unsigned long)(_PAG 33 _PAG 34 _PAG 35 36 static const __maybe_unused int pgtable_l4_ena 37 static const __maybe_unused int pgtable_l5_ena 38 39 #endif /* _ASM_RISCV_PGTABLE_32_H */ 40
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.