/linux/arch/hexagon/mm/ |
H A D | init.c | 240 [VM_NONE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 242 [VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 244 [VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 246 [VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 248 [VM_EXEC] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 250 [VM_EXEC | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 253 [VM_EXEC | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 255 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 258 [VM_SHARED] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 260 [VM_SHARED | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | [all …]
|
/linux/arch/loongarch/mm/ |
H A D | cache.c | 162 [VM_NONE] = __pgprot(_CACHE_CC | _PAGE_USER | 166 _PAGE_USER | _PAGE_PRESENT | 169 _PAGE_USER | _PAGE_PRESENT | 172 _PAGE_USER | _PAGE_PRESENT | 175 _PAGE_USER | _PAGE_PRESENT), 177 _PAGE_USER | _PAGE_PRESENT), 179 _PAGE_USER | _PAGE_PRESENT), 181 _PAGE_USER | _PAGE_PRESENT), 182 [VM_SHARED] = __pgprot(_CACHE_CC | _PAGE_USER | 186 _PAGE_USER | _PAGE_PRESENT | [all …]
|
/linux/arch/microblaze/include/asm/ |
H A D | pgtable.h | 150 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro 194 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 195 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 196 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 198 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 199 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 200 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 245 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 255 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect() 266 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread() [all …]
|
/linux/arch/xtensa/include/asm/ |
H A D | pgtable.h | 154 #define _PAGE_USER (1<<4) /* user access (ring=1) */ macro 170 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER) 171 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER) 172 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 173 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER) 174 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 175 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE) 177 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC) 235 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) 244 do { update_pte(ptep, __pte(_PAGE_CA_INVALID | _PAGE_USER)); } while (0) [all …]
|
/linux/arch/um/include/asm/ |
H A D | pgtable.h | 16 #define _PAGE_USER 0x040 macro 57 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 63 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) 64 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 65 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 85 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 123 return((pte_get_bits(pte, _PAGE_USER)) && in pte_read() 128 return((pte_get_bits(pte, _PAGE_USER)) && in pte_exec() 179 pte_set_bits(pte, _PAGE_USER); in pte_mkread()
|
H A D | pgtable-4level.h | 59 #define pud_bad(x) ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 67 #define p4d_bad(x) ((p4d_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
|
/linux/arch/hexagon/include/asm/ |
H A D | pgtable.h | 36 #define _PAGE_USER __HVM_PTE_U macro 109 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 111 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 114 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 117 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \ 146 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \ 147 (_PAGE_EXECUTE | _PAGE_USER))
|
/linux/arch/loongarch/include/asm/ |
H A D | pgtable-bits.h | 57 #define _PAGE_USER (PLV_USER << _PAGE_PLV_SHIFT) macro 83 _PAGE_USER | _CACHE_CC) 85 _PAGE_USER | _CACHE_CC) 86 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _CACHE_CC)
|
/linux/arch/sh/include/asm/ |
H A D | pgtable_32.h | 48 #define _PAGE_USER 0x040 /* PR1-bit : user space access allowed*/ macro 56 #define _PAGE_PR_MASK (_PAGE_RW | _PAGE_USER) 242 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 246 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_CACHABLE | \ 249 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_CACHABLE | \ 479 #define _PAGE_SWP_EXCLUSIVE _PAGE_USER
|
H A D | pgtable.h | 139 u64 prot = _PAGE_PRESENT | _PAGE_USER; in pte_access_permitted()
|
/linux/arch/x86/entry/vsyscall/ |
H A D | vsyscall_64.c | 342 set_pgd(pgd, __pgd(pgd_val(*pgd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits() 345 set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits() 348 set_pud(pud, __pud(pud_val(*pud) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits() 350 set_pmd(pmd, __pmd(pmd_val(*pmd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
|
/linux/arch/x86/mm/ |
H A D | pti.c | 157 if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) == (_PAGE_USER|_PAGE_PRESENT) && in __pti_set_user_pgtbl() 274 if (pte_flags(*pte) & _PAGE_USER) { in pti_user_pagetable_walk_pte()
|
H A D | dump_pagetables.c | 188 if (pr & _PAGE_USER) in printk_prot() 260 effective = (higher_prot & prot & (_PAGE_USER | _PAGE_RW)) | in effective_prot()
|
/linux/arch/riscv/include/asm/ |
H A D | pgtable-bits.h | 15 #define _PAGE_USER (1 << 4) /* User */ macro
|
H A D | pgtable-32.h | 34 _PAGE_USER | _PAGE_GLOBAL))
|
H A D | pgtable-64.h | 172 _PAGE_USER | _PAGE_GLOBAL | \ 198 return pud_val(pud) & _PAGE_USER; in pud_user()
|
H A D | pgtable.h | 172 #define _PAGE_BASE (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_USER) 379 return pte_val(pte) & _PAGE_USER; in pte_user()
|
/linux/arch/x86/include/asm/ |
H A D | pgtable_types.h | 53 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) macro 114 #define _PAGE_SWP_UFFD_WP _PAGE_USER 191 #define _USR _PAGE_USER
|
H A D | tlbflush.h | 311 const pteval_t flush_on_change = _PAGE_RW | _PAGE_USER | _PAGE_PWT | in pte_flags_need_flush()
|
/linux/arch/microblaze/mm/ |
H A D | pgtable.c | 180 f |= _PAGE_USER; in mapin_ram()
|
/linux/arch/riscv/mm/ |
H A D | ptdump.c | 164 .mask = _PAGE_USER,
|
/linux/arch/openrisc/include/asm/ |
H A D | pgtable.h | 143 #define _PAGE_USER _PAGE_URE macro
|
/linux/arch/sh/mm/ |
H A D | pmb.c | 209 return (pgprot_val(prot) & _PAGE_USER) == 0; in pmb_prot_valid()
|