Home
last modified time | relevance | path

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

12

/linux-5.19.10/arch/powerpc/include/asm/nohash/32/
Dpte-40x.h49 #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)
81 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
83 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
85 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
Dpte-44x.h77 #define _PAGE_EXEC 0x00000004 /* H: Execute permission */ macro
92 #define _PAGE_KERNEL_ROX _PAGE_EXEC
94 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC)
121 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
123 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
125 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
Dpte-fsl-booke.h24 #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)
Dpte-8xx.h43 #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)
151 unsigned long set = pte_val(entry) & (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_EXEC); in __ptep_set_access_flags()
Dpgtable.h200 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
286 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) in pte_update()
327 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
/linux-5.19.10/arch/openrisc/include/asm/
Dpgtable.h132 #define _PAGE_EXEC 0x400 /* software: page is executable */ macro
159 #define PAGE_READONLY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
165 | _PAGE_SHARED | _PAGE_EXEC)
167 #define PAGE_COPY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
171 | _PAGE_SHARED | _PAGE_DIRTY | _PAGE_EXEC)
174 | _PAGE_SHARED | _PAGE_DIRTY | _PAGE_EXEC)
177 | _PAGE_SHARED | _PAGE_DIRTY | _PAGE_EXEC | _PAGE_CI)
234 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
252 pte_val(pte) &= ~(_PAGE_EXEC); in pte_exprotect()
282 pte_val(pte) |= _PAGE_EXEC; in pte_mkexec()
/linux-5.19.10/arch/microblaze/include/asm/
Dpgtable.h170 #ifndef _PAGE_EXEC
171 #define _PAGE_EXEC 0 macro
192 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
195 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
197 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
261 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
273 { pte_val(pte) &= ~_PAGE_EXEC; return pte; } in pte_exprotect()
282 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } in pte_mkexec()
/linux-5.19.10/arch/powerpc/include/asm/book3s/32/
Dpgtable.h30 #define _PAGE_EXEC 0x200 /* software: exec allowed */ macro
48 #define _PAGE_KERNEL_ROX (_PAGE_EXEC)
50 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC)
106 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
108 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
110 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
372 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
404 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
471 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
486 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
/linux-5.19.10/arch/riscv/include/asm/
Dpgtable-bits.h14 #define _PAGE_EXEC (1 << 3) /* Executable */ macro
36 #define _PAGE_LEAF (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
Dpgtable.h158 #define PAGE_EXEC __pgprot(_PAGE_BASE | _PAGE_EXEC)
159 #define PAGE_READ_EXEC __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_EXEC)
161 _PAGE_EXEC | _PAGE_WRITE)
178 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL | _PAGE_EXEC)
180 | _PAGE_EXEC)
324 return pte_val(pte) & _PAGE_EXEC; in pte_exec()
Dpgtable-32.h33 _PAGE_WRITE | _PAGE_EXEC | \
/linux-5.19.10/arch/powerpc/mm/ptdump/
Dshared.c24 .mask = _PAGE_EXEC,
25 .val = _PAGE_EXEC,
D8xx.c41 .mask = _PAGE_EXEC,
42 .val = _PAGE_EXEC,
Dbook3s64.c29 .mask = _PAGE_EXEC,
30 .val = _PAGE_EXEC,
/linux-5.19.10/arch/powerpc/mm/nohash/
D40x.c102 unsigned long val = p | _PMD_SIZE_16M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram()
117 unsigned long val = p | _PMD_SIZE_4M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram()
Dfsl_book3e.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-5.19.10/arch/riscv/mm/
Dptdump.c164 .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()
Dpageattr.c134 __pgprot(_PAGE_EXEC)); in set_memory_rw_nx()
151 return __set_memory(addr, numpages, __pgprot(_PAGE_EXEC), __pgprot(0)); in set_memory_x()
156 return __set_memory(addr, numpages, __pgprot(0), __pgprot(_PAGE_EXEC)); in set_memory_nx()
/linux-5.19.10/arch/nios2/include/asm/
Dpgtable.h34 ((x) ? _PAGE_EXEC : 0) | \
64 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL)
171 const unsigned long mask = _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC; in pte_modify()
Dpgtable-bits.h21 #define _PAGE_EXEC (1<<21) macro
/linux-5.19.10/arch/powerpc/include/asm/book3s/64/
Dpgtable.h17 #define _PAGE_EXEC 0x00001 /* execute permission */ macro
21 #define _PAGE_RWX (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
119 #define _PAGE_KERNEL_ROX (_PAGE_PRIVILEGED | _PAGE_READ | _PAGE_EXEC)
121 _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)
528 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_EXEC)); in pte_exec()
668 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_EXEC)); in pte_exprotect()
683 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_EXEC)); in pte_mkexec()
/linux-5.19.10/arch/parisc/include/asm/
Dpgtable.h212 #define _PAGE_EXEC (1 << xlate_pabit(_PAGE_EXEC_BIT)) macro
227 #define _PAGE_KERNEL_EXEC (_PAGE_KERNEL_RO | _PAGE_EXEC)
254 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC)
256 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
/linux-5.19.10/arch/powerpc/include/asm/nohash/
Dpgtable.h54 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
130 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
Dpte-book3e.h51 #define _PAGE_EXEC (_PAGE_BAP_SX | _PAGE_BAP_UX) /* .. and was cache cleaned */ macro
/linux-5.19.10/arch/riscv/kernel/
Defi.c72 val = pte_val(pte) & ~_PAGE_EXEC; in set_permissions()

12