![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/src/linux-headers-5.4.0-198/arch/powerpc/include/asm/nohash/32/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_NOHASH_32_HUGETLB_8XX_H #define _ASM_POWERPC_NOHASH_32_HUGETLB_8XX_H #define PAGE_SHIFT_8M 23 static inline pte_t *hugepd_page(hugepd_t hpd) { BUG_ON(!hugepd_ok(hpd)); return (pte_t *)__va(hpd_val(hpd) & ~HUGEPD_SHIFT_MASK); } static inline unsigned int hugepd_shift(hugepd_t hpd) { return ((hpd_val(hpd) & _PMD_PAGE_MASK) >> 1) + 17; } static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, unsigned int pdshift) { unsigned long idx = (addr & ((1UL << pdshift) - 1)) >> PAGE_SHIFT; return hugepd_page(hpd) + idx; } static inline void flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr) { flush_tlb_page(vma, vmaddr); } static inline void hugepd_populate(hugepd_t *hpdp, pte_t *new, unsigned int pshift) { *hpdp = __hugepd(__pa(new) | _PMD_USER | _PMD_PRESENT | (pshift == PAGE_SHIFT_8M ? _PMD_PAGE_8M : _PMD_PAGE_512K)); } static inline int check_and_get_huge_psize(int shift) { return shift_to_mmu_psize(shift); } #endif /* _ASM_POWERPC_NOHASH_32_HUGETLB_8XX_H */