/Linux-v4.19/arch/powerpc/include/asm/ |
D | pte-common.h | 49 #ifndef _PAGE_USER 50 #define _PAGE_USER 0 macro 96 return (pte_val(pte) & (_PAGE_USER | _PAGE_PRIVILEGED)) == _PAGE_USER; in pte_user() 126 _PAGE_USER | _PAGE_ACCESSED | _PAGE_RO | _PAGE_NA | \ 155 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 156 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | \ 158 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO) 159 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO | \ 161 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO) 162 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO | \
|
/Linux-v4.19/arch/hexagon/include/asm/ |
D | pgtable.h | 50 #define _PAGE_USER __HVM_PTE_U macro 120 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 122 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 125 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 128 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \ 144 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF) 145 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF) 148 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 150 #define __P101 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_EXECUTE | \ 158 #define __S010 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ [all …]
|
/Linux-v4.19/arch/xtensa/include/asm/ |
D | pgtable.h | 159 #define _PAGE_USER (1<<4) /* user access (ring=1) */ macro 172 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER) 173 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER) 174 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 175 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER) 176 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 177 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE) 179 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC) 255 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) 264 do { update_pte(ptep, __pte(_PAGE_CA_INVALID | _PAGE_USER)); } while (0) [all …]
|
/Linux-v4.19/arch/um/include/asm/ |
D | pgtable.h | 17 #define _PAGE_USER 0x040 macro 55 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 61 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) 62 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 63 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 100 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 134 return((pte_get_bits(pte, _PAGE_USER)) && in pte_read() 139 return((pte_get_bits(pte, _PAGE_USER)) && in pte_exec() 206 pte_set_bits(pte, _PAGE_USER); in pte_mkread()
|
D | pgtable-3level.h | 58 #define pud_bad(x) ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
|
/Linux-v4.19/arch/microblaze/include/asm/ |
D | pgtable.h | 213 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro 254 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 255 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 256 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 258 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 259 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 260 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 334 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 344 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect() 355 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread() [all …]
|
/Linux-v4.19/arch/x86/include/asm/ |
D | pgtable_types.h | 44 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) macro 114 #define _PAGE_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER |\ 155 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 159 _PAGE_USER | _PAGE_ACCESSED) 160 #define PAGE_COPY_NOEXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 162 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 165 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 167 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 177 #define __PAGE_KERNEL_VVAR (__PAGE_KERNEL_RO | _PAGE_USER) 191 #define _PAGE_TABLE (_KERNPG_TABLE | _PAGE_USER)
|
D | pgtable.h | 825 return (pmd_flags(pmd) & ~_PAGE_USER) != _KERNPG_TABLE; in pmd_bad() 869 return (pud_flags(pud) & ~(_KERNPG_TABLE | _PAGE_USER)) != 0; in pud_bad() 913 unsigned long ignore_flags = _KERNPG_TABLE | _PAGE_USER; in p4d_bad() 956 unsigned long ignore_flags = _PAGE_USER; in pgd_bad() 1404 unsigned long need_pte_bits = _PAGE_PRESENT|_PAGE_USER; in __pte_access_permitted()
|
/Linux-v4.19/arch/riscv/include/asm/ |
D | pgtable-bits.h | 29 #define _PAGE_USER (1 << 4) /* User */ macro 43 _PAGE_USER | _PAGE_GLOBAL))
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | pgtable.h | 203 #define _PAGE_USER (1 << xlate_pabit(_PAGE_USER_BIT)) macro 230 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 231 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_ACCESSED) 235 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_ACCESSED) 236 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE | _PAGE_ACCESSED) 237 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC |_PAGE_ACCESS… 239 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC… 245 #define PAGE_GATEWAY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | _PAGE_GATEWAY| _PAGE…
|
/Linux-v4.19/arch/x86/entry/vsyscall/ |
D | vsyscall_64.c | 351 set_pgd(pgd, __pgd(pgd_val(*pgd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits() 354 set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits() 357 set_pud(pud, __pud(pud_val(*pud) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits() 359 set_pmd(pmd, __pmd(pmd_val(*pmd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
|
/Linux-v4.19/arch/sh/include/asm/ |
D | pgtable_64.h | 69 #define pmd_bad(pmd_entry) ((pmd_val(pmd_entry) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 116 #define _PAGE_USER 0x200 /* PR3-bit : user space access allowed */ macro 171 #define _PAGE_TABLE (_KERNPG_TABLE | _PAGE_USER) 179 #define _PAGE_COMMON (_PAGE_PRESENT | _PAGE_USER | \
|
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 | \
|
/Linux-v4.19/arch/powerpc/include/asm/nohash/32/ |
D | pte-40x.h | 45 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro
|
D | pte-44x.h | 81 #define _PAGE_USER 0x00000040 /* S: User page */ macro
|
D | pte-fsl-booke.h | 21 #define _PAGE_USER 0x00002 /* S: User page (maps to UR) */ macro
|
D | pgtable.h | 188 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) in pte_update() 219 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) in pte_update()
|
/Linux-v4.19/arch/powerpc/include/asm/book3s/32/ |
D | hash.h | 22 #define _PAGE_USER 0x004 /* usermode access allowed */ macro
|
/Linux-v4.19/arch/x86/mm/ |
D | pti.c | 164 if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) == (_PAGE_USER|_PAGE_PRESENT) && in __pti_set_user_pgtbl() 276 if (pte_flags(*pte) & _PAGE_USER) { in pti_user_pagetable_walk_pte()
|
D | dump_pagetables.c | 192 if (pr & _PAGE_USER) in printk_prot() 340 return (prot1 & prot2 & (_PAGE_USER | _PAGE_RW)) | in effective_prot() 528 eff = _PAGE_USER | _PAGE_RW; in ptdump_walk_pgd_level_core()
|
/Linux-v4.19/arch/powerpc/mm/ |
D | pgtable.c | 57 (_PAGE_PRESENT | _PAGE_SPECIAL | _PAGE_NO_CACHE | _PAGE_USER | in pte_looks_normal() 59 (_PAGE_PRESENT | _PAGE_USER); in pte_looks_normal()
|
D | ppc_mmu_32.c | 136 if (flags & _PAGE_USER) in setbat() 152 ((flags & _PAGE_USER)? PP_RWRW: PP_RWXX): PP_RXRX; in setbat()
|
D | dump_linuxpagetables.c | 115 .mask = _PAGE_USER | _PAGE_PRIVILEGED, 116 .val = _PAGE_USER,
|
/Linux-v4.19/arch/sh/mm/ |
D | gup.c | 86 result = _PAGE_PRESENT | _PAGE_USER | _PAGE_READ; in gup_pte_range() 90 result = _PAGE_PRESENT | _PAGE_USER; in gup_pte_range()
|
/Linux-v4.19/arch/powerpc/include/asm/nohash/ |
D | pte-book3e.h | 57 #define _PAGE_USER (_PAGE_BAP_UR | _PAGE_BAP_SR) /* Can be read */ macro
|