Merge tag 'kvm-x86-misc-6.9' of https://github.com/kvm-x86/linux into HEAD
[linux-2.6-block.git] / arch / riscv / include / asm / vmalloc.h
CommitLineData
1f059dfd
IM
1#ifndef _ASM_RISCV_VMALLOC_H
2#define _ASM_RISCV_VMALLOC_H
3
310f541a
LS
4#ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
5
d566bea4
AG
6extern bool pgtable_l4_enabled, pgtable_l5_enabled;
7
310f541a
LS
8#define IOREMAP_MAX_ORDER (PUD_SHIFT)
9
10#define arch_vmap_pud_supported arch_vmap_pud_supported
11static inline bool arch_vmap_pud_supported(pgprot_t prot)
12{
d566bea4 13 return pgtable_l4_enabled || pgtable_l5_enabled;
310f541a
LS
14}
15
16#define arch_vmap_pmd_supported arch_vmap_pmd_supported
17static inline bool arch_vmap_pmd_supported(pgprot_t prot)
18{
19 return true;
20}
21
16ab4646 22#endif
310f541a 23
1f059dfd 24#endif /* _ASM_RISCV_VMALLOC_H */