1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 #ifndef _ASM_RISCV_VMALLOC_H 3 #define _ASM_RISCV_VMALLOC_H 4 5 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP 6 7 extern bool pgtable_l4_enabled, pgtable_l5_ena 8 9 #define IOREMAP_MAX_ORDER (PUD_SHIFT) 10 11 #define arch_vmap_pud_supported arch_vmap_pud_ 12 static inline bool arch_vmap_pud_supported(pgp 13 { 14 return pgtable_l4_enabled || pgtable_l 15 } 16 17 #define arch_vmap_pmd_supported arch_vmap_pmd_ 18 static inline bool arch_vmap_pmd_supported(pgp 19 { 20 return true; 21 } 22 23 #endif 24 25 #endif /* _ASM_RISCV_VMALLOC_H */ 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.