/linux/arch/openrisc/include/asm/ |
H A D | pgtable.h | 132 #define _PAGE_EXEC 0x400 /* software: page is executable */ macro 162 #define PAGE_READONLY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC) 168 | _PAGE_SHARED | _PAGE_EXEC) 170 #define PAGE_COPY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC) 174 | _PAGE_SHARED | _PAGE_DIRTY | _PAGE_EXEC) 177 | _PAGE_SHARED | _PAGE_DIRTY | _PAGE_EXEC) 180 | _PAGE_SHARED | _PAGE_DIRTY | _PAGE_EXEC | _PAGE_CI) 219 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 237 pte_val(pte) &= ~(_PAGE_EXEC); in pte_exprotect() 267 pte_val(pte) |= _PAGE_EXEC; in pte_mkexec()
|
/linux/arch/powerpc/include/asm/nohash/32/ |
H A D | pte-8xx.h | 43 #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 D | pte-44x.h | 67 #define _PAGE_EXEC 0x00000004 /* H: Execute permission */ macro
|
H A D | pte-85xx.h | 24 #define _PAGE_EXEC 0x00010 /* H: SX permission */ macro
|
/linux/arch/microblaze/include/asm/ |
H A D | pgtable.h | 173 #ifndef _PAGE_EXEC 174 #define _PAGE_EXEC 0 macro 195 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 198 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 200 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 247 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 259 { pte_val(pte) &= ~_PAGE_EXEC; return pte; } in pte_exprotect() 268 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } in pte_mkexec()
|
/linux/arch/powerpc/include/asm/ |
H A D | pgtable-masks.h | 7 #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/riscv/include/asm/ |
H A D | pgtable-bits.h | 14 #define _PAGE_EXEC (1 << 3) /* Executable */ macro 40 #define _PAGE_LEAF (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
|
H A D | pgtable.h | 177 #define PAGE_EXEC __pgprot(_PAGE_BASE | _PAGE_EXEC) 178 #define PAGE_READ_EXEC __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_EXEC) 180 _PAGE_EXEC | _PAGE_WRITE) 196 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL | _PAGE_EXEC) 198 | _PAGE_EXEC) 374 return pte_val(pte) & _PAGE_EXEC; in pte_exec() 633 return __pgprot(pgprot_val(_prot) & ~_PAGE_EXEC); in pgprot_nx()
|
H A D | pgtable-32.h | 33 _PAGE_WRITE | _PAGE_EXEC | \
|
/linux/arch/powerpc/include/asm/nohash/ |
H A D | pgtable.h | 91 if (IS_ENABLED(CONFIG_44x) && !is_kernel_addr(addr) && (old & _PAGE_EXEC)) in pte_update() 142 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 182 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 197 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 259 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
|
H A D | pte-e500.h | 40 #define _PAGE_EXEC (_PAGE_BAP_SX | _PAGE_BAP_UX) /* .. and was cache cleaned */ macro
|
/linux/arch/powerpc/mm/ptdump/ |
H A D | shared.c | 24 .mask = _PAGE_EXEC, 25 .val = _PAGE_EXEC,
|
H A D | 8xx.c | 36 .mask = _PAGE_EXEC, 37 .val = _PAGE_EXEC,
|
H A D | book3s64.c | 29 .mask = _PAGE_EXEC, 30 .val = _PAGE_EXEC,
|
/linux/arch/powerpc/include/asm/book3s/32/ |
H A D | pgtable.h | 30 #define _PAGE_EXEC 0x200 /* software: exec allowed */ macro 334 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 398 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 460 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 475 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
|
/linux/arch/nios2/include/asm/ |
H A D | pgtable.h | 37 ((x) ? _PAGE_EXEC : 0) | \ 51 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL) 155 const unsigned long mask = _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC; in pte_modify()
|
H A D | pgtable-bits.h | 21 #define _PAGE_EXEC (1<<21) macro
|
/linux/arch/riscv/mm/ |
H A D | ptdump.c | 168 .mask = _PAGE_EXEC, 269 if ((st->current_prot & (_PAGE_WRITE | _PAGE_EXEC)) != in note_prot_wx() 270 (_PAGE_WRITE | _PAGE_EXEC)) in note_prot_wx()
|
/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | pgtable.h | 17 #define _PAGE_EXEC 0x00001 /* execute permission */ macro 118 #define _PAGE_KERNEL_ROX (_PAGE_PRIVILEGED | _PAGE_READ | _PAGE_EXEC) 119 #define _PAGE_KERNEL_RWX (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 463 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_EXEC)); in pte_exec() 566 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_EXEC)); in pte_exprotect() 581 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_EXEC)); in pte_mkexec()
|
H A D | hash.h | 230 _PAGE_EXEC | _PAGE_SOFT_DIRTY); in hash__ptep_set_access_flags()
|
/linux/arch/powerpc/mm/nohash/ |
H A D | e500.c | 127 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 D | efi.c | 72 val = pte_val(pte) & ~_PAGE_EXEC; in set_permissions()
|
/linux/arch/openrisc/mm/ |
H A D | fault.c | 157 if ((vector == 0x400) && !(vma->vm_page_prot.pgprot & _PAGE_EXEC)) in do_page_fault()
|
/linux/arch/powerpc/kernel/ |
H A D | head_85xx.S | 559 li r13,_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_EXEC 580 li r13,_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_EXEC 768 li r10, (_PAGE_EXEC | _PAGE_READ) 775 rlwinm r10, r10, 0, ~_PAGE_EXEC /* Clear SX on user pages */
|
/linux/arch/nios2/mm/ |
H A D | tlb.c | 199 (tlbacc & _PAGE_EXEC ? 'x' : '-'), in dump_tlb_line()
|