Home
last modified time | relevance | path

Searched refs:_PAGE_EXEC (Results 1 – 25 of 26) sorted by relevance

12

/linux/arch/powerpc/include/asm/nohash/32/
H A Dpte-8xx.h43 #define _PAGE_EXEC 0x0040 /* Copied to PP (bit 21) in ITLB */ macro
51 #define _PAGE_NAX (_PAGE_NA | _PAGE_EXEC)
52 #define _PAGE_ROX (_PAGE_RO | _PAGE_EXEC)
54 #define _PAGE_RWX _PAGE_EXEC
61 #define _PAGE_KERNEL_ROX (_PAGE_SH | _PAGE_RO | _PAGE_EXEC)
63 #define _PAGE_KERNEL_RWX (_PAGE_SH | _PAGE_DIRTY | _PAGE_EXEC)
134 unsigned long set = pte_val(entry) & (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_EXEC); in __ptep_set_access_flags()
H A Dpte-44x.h67 #define _PAGE_EXEC 0x00000004 /* H: Execute permission */ macro
/linux/arch/riscv/include/asm/
H A Dpgtable-bits.h14 #define _PAGE_EXEC (1 << 3) /* Executable */ macro
35 _PAGE_EXEC : 0)
76 #define _PAGE_LEAF (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
H A Dpgtable-32.h33 _PAGE_WRITE | _PAGE_EXEC | \
H A Dpgtable.h162 #define PAGE_EXEC __pgprot(_PAGE_BASE | _PAGE_EXEC)
163 #define PAGE_READ_EXEC __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_EXEC)
165 _PAGE_EXEC | _PAGE_WRITE)
182 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL | _PAGE_EXEC)
184 | _PAGE_EXEC)
367 return pte_val(pte) & _PAGE_EXEC; in pte_exec()
707 return __pgprot(pgprot_val(_prot) & ~_PAGE_EXEC); in pgprot_nx()
H A Dpgtable-64.h173 _PAGE_WRITE | _PAGE_EXEC | \
/linux/arch/powerpc/include/asm/
H A Dpgtable-masks.h7 #define _PAGE_NAX _PAGE_EXEC
9 #define _PAGE_ROX (_PAGE_READ | _PAGE_EXEC)
11 #define _PAGE_RWX (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
/linux/arch/powerpc/include/asm/nohash/
H A Dpgtable.h93 if (IS_ENABLED(CONFIG_44x) && !is_kernel_addr(addr) && (old & _PAGE_EXEC)) in pte_update()
148 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
188 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
203 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
270 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
H A Dpte-e500.h40 #define _PAGE_EXEC (_PAGE_BAP_SX | _PAGE_BAP_UX) /* .. and was cache cleaned */ macro
/linux/arch/powerpc/mm/ptdump/
H A D8xx.c36 .mask = _PAGE_EXEC,
37 .val = _PAGE_EXEC,
H A Dshared.c24 .mask = _PAGE_EXEC,
25 .val = _PAGE_EXEC,
H A Dbook3s64.c29 .mask = _PAGE_EXEC,
30 .val = _PAGE_EXEC,
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h30 #define _PAGE_EXEC 0x200 /* software: exec allowed */ macro
335 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
399 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
466 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
481 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
/linux/arch/parisc/include/asm/
H A Dpgtable.h193 #define _PAGE_EXEC (1 << xlate_pabit(_PAGE_EXEC_BIT)) macro
208 #define _PAGE_KERNEL_EXEC (_PAGE_KERNEL_RO | _PAGE_EXEC)
238 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC)
240 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
/linux/arch/nios2/include/asm/
H A Dpgtable-bits.h21 #define _PAGE_EXEC (1<<21) macro
/linux/arch/riscv/mm/
H A Dptdump.c167 .mask = _PAGE_EXEC,
268 if ((st->current_prot & (_PAGE_WRITE | _PAGE_EXEC)) != in note_prot_wx()
269 (_PAGE_WRITE | _PAGE_EXEC)) in note_prot_wx()
/linux/arch/powerpc/include/asm/book3s/64/
H A Dpgtable.h17 #define _PAGE_EXEC 0x00001 /* execute permission */ macro
117 #define _PAGE_KERNEL_ROX (_PAGE_PRIVILEGED | _PAGE_READ | _PAGE_EXEC)
118 #define _PAGE_KERNEL_RWX (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC)
472 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_EXEC)); in pte_exec()
580 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_EXEC)); in pte_exprotect()
595 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_EXEC)); in pte_mkexec()
H A Dhash.h230 _PAGE_EXEC | _PAGE_SOFT_DIRTY); in hash__ptep_set_access_flags()
/linux/arch/powerpc/mm/nohash/
H A De500.c127 TLBCAM[index].MAS3 |= (flags & _PAGE_EXEC) ? MAS3_UX : 0; in settlbcam()
130 TLBCAM[index].MAS3 |= (flags & _PAGE_EXEC) ? MAS3_SX : 0; in settlbcam()
/linux/arch/riscv/kernel/
H A Defi.c72 val = pte_val(pte) & ~_PAGE_EXEC; in set_permissions()
H A Dhibernate.c372 ret = temp_pgtable_mapping(resume_pg_dir, start, end, __pgprot(_PAGE_WRITE | _PAGE_EXEC)); in swsusp_arch_resume()
/linux/arch/openrisc/mm/
H A Dfault.c157 if ((vector == 0x400) && !(vma->vm_page_prot.pgprot & _PAGE_EXEC)) in do_page_fault()
/linux/arch/powerpc/kernel/
H A Dhead_44x.S459 li r13,_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_EXEC
690 li r13,_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_EXEC
/linux/arch/powerpc/mm/book3s64/
H A Dhash_utils.c561 if ((pteflags & _PAGE_EXEC) == 0) in htab_convert_pte_flags()
1995 access |= _PAGE_EXEC; in DEFINE_INTERRUPT_HANDLER()
2038 unsigned long access = _PAGE_PRESENT | _PAGE_READ | (is_exec ? _PAGE_EXEC : 0); in hash_preload()
/linux/arch/powerpc/kvm/
H A Dbook3s_64_mmu_radix.c220 gpte->may_execute = !!(pte & _PAGE_EXEC); in kvmppc_mmu_walk_radix_tree()
893 pte = __pte(pte_val(pte) | _PAGE_EXEC | _PAGE_ACCESSED); in kvmppc_book3s_instantiate_page()

12