hash.h (16ba7e312045cd5d32fba0156312b4303f200787) | hash.h (2fb4706057bcf8261b3b0521ec7a62b54b82ce48) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _ASM_POWERPC_BOOK3S_64_HASH_H 3#define _ASM_POWERPC_BOOK3S_64_HASH_H 4#ifdef __KERNEL__ 5 6#include <asm/asm-const.h> 7 8/* --- 120 unchanged lines hidden (view full) --- 129 BUILD_BUG_ON(NON_LINEAR_REGION_ID(H_VMALLOC_START) != 2); 130 131 region_id = NON_LINEAR_REGION_ID(ea); 132 return region_id; 133} 134 135#define hash__pmd_bad(pmd) (pmd_val(pmd) & H_PMD_BAD_BITS) 136#define hash__pud_bad(pud) (pud_val(pud) & H_PUD_BAD_BITS) | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _ASM_POWERPC_BOOK3S_64_HASH_H 3#define _ASM_POWERPC_BOOK3S_64_HASH_H 4#ifdef __KERNEL__ 5 6#include <asm/asm-const.h> 7 8/* --- 120 unchanged lines hidden (view full) --- 129 BUILD_BUG_ON(NON_LINEAR_REGION_ID(H_VMALLOC_START) != 2); 130 131 region_id = NON_LINEAR_REGION_ID(ea); 132 return region_id; 133} 134 135#define hash__pmd_bad(pmd) (pmd_val(pmd) & H_PMD_BAD_BITS) 136#define hash__pud_bad(pud) (pud_val(pud) & H_PUD_BAD_BITS) |
137static inline int hash__pgd_bad(pgd_t pgd) | 137static inline int hash__p4d_bad(p4d_t p4d) |
138{ | 138{ |
139 return (pgd_val(pgd) == 0); | 139 return (p4d_val(p4d) == 0); |
140} 141#ifdef CONFIG_STRICT_KERNEL_RWX 142extern void hash__mark_rodata_ro(void); 143extern void hash__mark_initmem_nx(void); 144#endif 145 146extern void hpte_need_flush(struct mm_struct *mm, unsigned long addr, 147 pte_t *ptep, unsigned long pte, int huge); --- 113 unchanged lines hidden --- | 140} 141#ifdef CONFIG_STRICT_KERNEL_RWX 142extern void hash__mark_rodata_ro(void); 143extern void hash__mark_initmem_nx(void); 144#endif 145 146extern void hpte_need_flush(struct mm_struct *mm, unsigned long addr, 147 pte_t *ptep, unsigned long pte, int huge); --- 113 unchanged lines hidden --- |