1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H 3 #define _ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H 4 5 #ifndef __ASSEMBLY__ 6 #ifdef CONFIG_HUGETLB_PAGE 7 8 /* 9 * With 64k page size, we have hugepage ptes in the pgd and pmd entries. We don't 10 * need to setup hugepage directory for them. Our pte and page directory format 11 * enable us to have this enabled. 12 */ 13 static inline int hugepd_ok(hugepd_t hpd) 14 { 15 return 0; 16 } 17 18 #define is_hugepd(pdep) 0 19 20 /* 21 * This should never get called 22 */ 23 static __always_inline int get_hugepd_cache_index(int index) 24 { 25 BUILD_BUG(); 26 } 27 28 #endif /* CONFIG_HUGETLB_PAGE */ 29 30 static inline int remap_4k_pfn(struct vm_area_struct *vma, unsigned long addr, 31 unsigned long pfn, pgprot_t prot) 32 { 33 if (radix_enabled()) 34 BUG(); 35 return hash__remap_4k_pfn(vma, addr, pfn, prot); 36 } 37 #endif /* __ASSEMBLY__ */ 38 #endif /*_ASM_POWERPC_BOOK3S_64_PGTABLE_64K_H */ 39