Home
last modified time | relevance | path

Searched refs:PTE_RDONLY (Results 1 – 8 of 8) sorted by relevance

/arch/arm64/include/asm/
Dpgtable-prot.h68 #define PAGE_KERNEL_RO __pgprot((PROT_NORMAL & ~PTE_WRITE) | PTE_RDONLY)
69 #define PAGE_KERNEL_ROX __pgprot((PROT_NORMAL & ~(PTE_WRITE | PTE_PXN)) | PTE_RDONLY)
83 #define PAGE_NONE __pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PROT_NONE | PTE_RDONLY | PTE_NG | …
85 #define PAGE_SHARED __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN | …
86 #define PAGE_SHARED_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_WR…
87 #define PAGE_READONLY __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN)
88 #define PAGE_READONLY_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN)
89 #define PAGE_EXECONLY __pgprot(_PAGE_DEFAULT | PTE_RDONLY | PTE_NG | PTE_PXN)
Dpgtable.h115 #define pte_hw_dirty(pte) (pte_write(pte) && !(pte_val(pte) & PTE_RDONLY))
178 pte = clear_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_mkwrite()
185 pte = set_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_mkclean()
195 pte = clear_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_mkdirty()
210 pte = set_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_wrprotect()
771 const pteval_t mask = PTE_USER | PTE_PXN | PTE_UXN | PTE_RDONLY | in pte_modify()
Dpgtable-hwdef.h148 #define PTE_RDONLY (_AT(pteval_t, 1) << 7) /* AP[2] */ macro
/arch/arm64/mm/
Dpageattr.c99 if (rodata_full && (pgprot_val(set_mask) == PTE_RDONLY || in change_memory_common()
100 pgprot_val(clear_mask) == PTE_RDONLY)) { in change_memory_common()
119 __pgprot(PTE_RDONLY), in set_memory_ro()
127 __pgprot(PTE_RDONLY)); in set_memory_rw()
175 .clear_mask = __pgprot(PTE_RDONLY), in set_direct_map_default_noflush()
Dptdump.c106 .mask = PTE_RDONLY,
107 .val = PTE_RDONLY,
240 if ((st->current_prot & PTE_RDONLY) == PTE_RDONLY) in note_prot_wx()
Dfault.c213 pte_val(entry) &= PTE_RDONLY | PTE_AF | PTE_WRITE | PTE_DIRTY; in ptep_set_access_flags()
221 pte_val(entry) ^= PTE_RDONLY; in ptep_set_access_flags()
225 pteval ^= PTE_RDONLY; in ptep_set_access_flags()
227 pteval ^= PTE_RDONLY; in ptep_set_access_flags()
Dmmu.c129 pteval_t mask = PTE_PXN | PTE_RDONLY | PTE_WRITE | PTE_NG; in pgattr_change_is_safe()
/arch/arm64/kernel/
Defi.c105 pte = set_pte_bit(pte, __pgprot(PTE_RDONLY)); in set_permissions()