/linux-6.6.21/arch/powerpc/include/asm/nohash/32/ |
D | pte-40x.h | 49 #define _PAGE_EXEC 0x200 /* hardware: EX permission */ macro 59 #define _PAGE_KERNEL_ROX _PAGE_EXEC 61 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 78 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 80 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 82 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
D | pte-44x.h | 67 #define _PAGE_EXEC 0x00000004 /* H: Execute permission */ macro 82 #define _PAGE_KERNEL_ROX _PAGE_EXEC 84 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 111 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 113 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 115 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
D | pte-85xx.h | 24 #define _PAGE_EXEC 0x00010 /* H: SX permission */ macro 35 #define _PAGE_KERNEL_ROX _PAGE_EXEC 37 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 67 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 69 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 71 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
D | pte-8xx.h | 43 #define _PAGE_EXEC 0x0040 /* Copied to PP (bit 21) in ITLB */ macro 56 #define _PAGE_KERNEL_ROX (_PAGE_SH | _PAGE_RO | _PAGE_EXEC) 58 #define _PAGE_KERNEL_RWX (_PAGE_SH | _PAGE_DIRTY | _PAGE_EXEC) 83 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_EXEC) 85 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_RO | _PAGE_EXEC) 87 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_RO | _PAGE_EXEC) 158 unsigned long set = pte_val(entry) & (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_EXEC); in __ptep_set_access_flags()
|
D | pgtable.h | 200 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 292 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) in pte_update() 333 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
|
/linux-6.6.21/arch/openrisc/include/asm/ |
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-6.6.21/arch/microblaze/include/asm/ |
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-6.6.21/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 30 #define _PAGE_EXEC 0x200 /* software: exec allowed */ macro 51 #define _PAGE_KERNEL_ROX (_PAGE_EXEC) 53 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 109 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 111 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 113 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 355 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 411 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 473 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 488 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | pgtable-bits.h | 14 #define _PAGE_EXEC (1 << 3) /* Executable */ macro 39 #define _PAGE_LEAF (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
|
D | pgtable.h | 183 #define PAGE_EXEC __pgprot(_PAGE_BASE | _PAGE_EXEC) 184 #define PAGE_READ_EXEC __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_EXEC) 186 _PAGE_EXEC | _PAGE_WRITE) 202 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL | _PAGE_EXEC) 204 | _PAGE_EXEC) 367 return pte_val(pte) & _PAGE_EXEC; in pte_exec()
|
D | pgtable-32.h | 33 _PAGE_WRITE | _PAGE_EXEC | \
|
/linux-6.6.21/arch/powerpc/mm/ptdump/ |
D | shared.c | 24 .mask = _PAGE_EXEC, 25 .val = _PAGE_EXEC,
|
D | 8xx.c | 41 .mask = _PAGE_EXEC, 42 .val = _PAGE_EXEC,
|
D | book3s64.c | 29 .mask = _PAGE_EXEC, 30 .val = _PAGE_EXEC,
|
/linux-6.6.21/arch/powerpc/mm/nohash/ |
D | 40x.c | 107 unsigned long val = p | _PMD_SIZE_16M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram() 122 unsigned long val = p | _PMD_SIZE_4M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram()
|
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-6.6.21/arch/riscv/mm/ |
D | ptdump.c | 164 .mask = _PAGE_EXEC, 165 .val = _PAGE_EXEC, 254 if ((st->current_prot & (_PAGE_WRITE | _PAGE_EXEC)) != in note_prot_wx() 255 (_PAGE_WRITE | _PAGE_EXEC)) in note_prot_wx()
|
D | pageattr.c | 352 __pgprot(_PAGE_EXEC)); in set_memory_rw_nx() 369 return __set_memory(addr, numpages, __pgprot(_PAGE_EXEC), __pgprot(0)); in set_memory_x() 374 return __set_memory(addr, numpages, __pgprot(0), __pgprot(_PAGE_EXEC)); in set_memory_nx() 386 PAGE_KERNEL, __pgprot(_PAGE_EXEC)); in set_direct_map_default_noflush()
|
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/ |
D | pgtable.h | 17 #define _PAGE_EXEC 0x00001 /* execute permission */ macro 21 #define _PAGE_RWX (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC) 120 #define _PAGE_KERNEL_ROX (_PAGE_PRIVILEGED | _PAGE_READ | _PAGE_EXEC) 121 #define _PAGE_KERNEL_RWX (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 149 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_EXEC) 151 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_EXEC) 153 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_EXEC) 155 #define PAGE_EXECONLY __pgprot(_PAGE_BASE | _PAGE_EXEC) 478 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_EXEC)); in pte_exec() 581 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_EXEC)); in pte_exprotect() [all …]
|
/linux-6.6.21/arch/nios2/include/asm/ |
D | pgtable.h | 34 ((x) ? _PAGE_EXEC : 0) | \ 48 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL) 152 const unsigned long mask = _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC; in pte_modify()
|
D | pgtable-bits.h | 21 #define _PAGE_EXEC (1<<21) macro
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | pgtable.h | 193 #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-6.6.21/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 36 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 110 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
|
D | pte-e500.h | 50 #define _PAGE_EXEC (_PAGE_BAP_SX | _PAGE_BAP_UX) /* .. and was cache cleaned */ macro
|
/linux-6.6.21/arch/riscv/kernel/ |
D | efi.c | 72 val = pte_val(pte) & ~_PAGE_EXEC; in set_permissions()
|