2019-11-28 15:19:36 +08:00
|
|
|
#ifndef _ASM_ARM64_VMALLOC_H
|
|
|
|
#define _ASM_ARM64_VMALLOC_H
|
|
|
|
|
2021-04-30 13:58:26 +08:00
|
|
|
#include <asm/page.h>
|
2021-09-20 17:29:31 +08:00
|
|
|
#include <asm/pgtable.h>
|
2021-04-30 13:58:26 +08:00
|
|
|
|
|
|
|
#ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
|
2021-04-30 13:58:33 +08:00
|
|
|
|
2021-04-30 13:58:39 +08:00
|
|
|
#define arch_vmap_pud_supported arch_vmap_pud_supported
|
2021-04-30 13:58:33 +08:00
|
|
|
static inline bool arch_vmap_pud_supported(pgprot_t prot)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* SW table walks can't handle removal of intermediate entries.
|
|
|
|
*/
|
2021-09-20 17:29:31 +08:00
|
|
|
return pud_sect_supported() &&
|
2021-04-30 13:58:33 +08:00
|
|
|
!IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
|
|
|
|
}
|
|
|
|
|
2021-04-30 13:58:39 +08:00
|
|
|
#define arch_vmap_pmd_supported arch_vmap_pmd_supported
|
2021-04-30 13:58:33 +08:00
|
|
|
static inline bool arch_vmap_pmd_supported(pgprot_t prot)
|
|
|
|
{
|
|
|
|
/* See arch_vmap_pud_supported() */
|
|
|
|
return !IS_ENABLED(CONFIG_PTDUMP_DEBUGFS);
|
|
|
|
}
|
2021-04-30 13:58:39 +08:00
|
|
|
|
2021-04-30 13:58:26 +08:00
|
|
|
#endif
|
|
|
|
|
2022-03-25 09:11:16 +08:00
|
|
|
#define arch_vmap_pgprot_tagged arch_vmap_pgprot_tagged
|
|
|
|
static inline pgprot_t arch_vmap_pgprot_tagged(pgprot_t prot)
|
|
|
|
{
|
|
|
|
return pgprot_tagged(prot);
|
|
|
|
}
|
|
|
|
|
2019-11-28 15:19:36 +08:00
|
|
|
#endif /* _ASM_ARM64_VMALLOC_H */
|