Home
last modified time | relevance | path

Searched refs:PG_RW (Results 1 – 22 of 22) sorted by relevance

/openbsd/sys/arch/amd64/stand/efiboot/
H A Dexec_i386.c287 if ((cr3[idx] & PG_RW) == 0) in protect_writeable()
288 cr3[idx] |= PG_RW; in protect_writeable()
294 if ((p[idx] & PG_RW) == 0) in protect_writeable()
295 p[idx] |= PG_RW; in protect_writeable()
301 if ((p[idx] & PG_RW) == 0) in protect_writeable()
302 p[idx] |= PG_RW; in protect_writeable()
308 if ((p[idx] & PG_RW) == 0) in protect_writeable()
309 p[idx] |= PG_RW; in protect_writeable()
/openbsd/sys/arch/amd64/stand/libsa/
H A Dexec_i386.c338 pml4[kern_pml4] = (uint64_t)pml3 | PG_V | PG_RW; in make_kernel_page_tables()
341 pml3[kern_pml3] = (uint64_t)pml2 | PG_V | PG_RW; in make_kernel_page_tables()
345 pml2[i + kern_pml2] = (uint64_t)pml1 | PG_V | PG_RW; in make_kernel_page_tables()
358 (j - kern_pml1) * PAGE_SIZE) | PG_V | PG_RW; in make_kernel_page_tables()
363 pml4[0] = (uint64_t)pml3 | PG_V | PG_RW; /* Covers 0-512GB */ in make_kernel_page_tables()
366 pml3[0] = (uint64_t)pml2 | PG_V | PG_RW; /* Covers 0-1GB */ in make_kernel_page_tables()
369 pml2[i] = (i << L2_SHIFT) | PG_V | PG_RW | PG_PS; in make_kernel_page_tables()
/openbsd/sys/arch/amd64/amd64/
H A Dhibernate_machdep.c249 PG_RW | PG_V | PG_M | PG_PS | PG_U; in hibernate_enter_resume_2m_pde()
255 npde = (HIBERNATE_PD_LOW2) | PG_RW | PG_V; in hibernate_enter_resume_2m_pde()
262 PG_RW | PG_V | PG_M | PG_PS | PG_U; in hibernate_enter_resume_2m_pde()
269 npde = (HIBERNATE_PDPT_HI) | PG_RW | PG_V; in hibernate_enter_resume_2m_pde()
275 npde = (HIBERNATE_PD_HI) | PG_RW | PG_V; in hibernate_enter_resume_2m_pde()
281 npde = (pa & PG_LGFRAME) | PG_RW | PG_V | PG_PS; in hibernate_enter_resume_2m_pde()
300 npde = (pa & PMAP_PA_MASK) | PG_RW | PG_V | PG_M | PG_U; in hibernate_enter_resume_4k_pte()
353 npde = (HIBERNATE_PDPT_LOW) | PG_RW | PG_V; in hibernate_populate_resume_pt()
359 npde = (HIBERNATE_PD_LOW) | PG_RW | PG_V; in hibernate_populate_resume_pt()
365 npde = (HIBERNATE_PT_LOW) | PG_RW | PG_V; in hibernate_populate_resume_pt()
H A Dpmap.c616 pte[(i * 512) + j] = curpa | PG_V | PG_RW | PG_PS | in pmap_set_pml4_early()
861 PG_RW | PG_V | PG_U | PG_M | pg_nx | in pmap_bootstrap()
871 pml2[j] |= PG_RW | PG_V | pg_g_kern | in pmap_bootstrap()
1048 (newp & pg_frame) | PG_V | PG_RW | pg_crypt; in pmap_prealloc_lowmem_ptps()
2173 clear = PG_RW; in pmap_write_protect()
2320 pd[l4idx] = (npa | PG_RW | PG_V | pg_crypt); in pmap_enter_special()
2344 pd[l3idx] = (npa | PG_RW | PG_V | pg_crypt); in pmap_enter_special()
2368 pd[l2idx] = (npa | PG_RW | PG_V | pg_crypt); in pmap_enter_special()
2939 } else if ((opte | (npte ^ PG_RW)) & PG_RW) { in pmap_enter()
2946 PTE_BASE[pl1_i(va)] = npte ^ PG_RW; in pmap_enter()
[all …]
H A Dlapic.c226 *pte = lapic_base | PG_RW | PG_V | PG_N | PG_G | pg_nx; in lapic_map()
H A Dvmm_machdep.c3517 if ((mode == PROT_WRITE) && !(pte & PG_RW)) in vmm_translate_gva()
/openbsd/sys/arch/i386/i386/
H A Ddb_memrw.c117 pmap_pte_setbits(addr, PG_RW, 0); in db_write_text()
130 pmap_pte_setbits(addr, bits, PG_RW); in db_write_text()
H A Dpmapae.c875 PG_RW | PG_V | PG_M | PG_U | pde_flags); in pmap_alloc_ptp_pae()
1090 *zpte = (pa & PG_FRAME) | PG_V | PG_RW; /* map in */ in pmap_zero_phys_pae()
1118 *spte = (srcpa & PG_FRAME) | PG_V | PG_RW; in pmap_copy_page_pae()
1119 *dpte = (dstpa & PG_FRAME) | PG_V | PG_RW; in pmap_copy_page_pae()
1589 md_prot |= PG_RW; in pmap_write_protect_pae()
1838 npte |= PG_RW; /* XXXCDC: no longer needed? */ in pmap_enter_pae()
1945 pd[l2idx] = (npa | PG_RW | PG_V | PG_M | PG_U); in pmap_enter_special_pae()
2015 ptaddr | PG_RW | PG_V | PG_U | PG_M; in pmap_growkernel_pae()
2058 npte = PTP0_PA | PG_RW | PG_V | PG_U | PG_M; in pmap_prealloc_lowmem_ptp_pae()
2082 *ptpte = PG_V | PG_RW | pa; /* always a new mapping */ in pmap_tmpmap_pa_pae()
[all …]
H A Dpmap.c962 protection_codes[PROT_WRITE] = PG_RW; /* w-- */ in pmap_bootstrap()
1115 npte = PTP0_PA | PG_RW | PG_V | PG_U | PG_M; in pmap_prealloc_lowmem_ptp()
1257 PG_RW | PG_V | PG_M | PG_U | pde_flags); in pmap_alloc_ptp_86()
1608 *zpte = (pa & PG_FRAME) | PG_V | PG_RW; /* map in */ in pmap_zero_phys_86()
1657 *pte = (pa & PG_FRAME) | PG_V | PG_RW; in pmap_flush_page()
1686 *spte = (srcpa & PG_FRAME) | PG_V | PG_RW; in pmap_copy_page_86()
1687 *dpte = (dstpa & PG_FRAME) | PG_V | PG_RW; in pmap_copy_page_86()
2157 md_prot |= PG_RW; in pmap_write_protect_86()
2405 npte |= PG_RW; /* XXXCDC: no longer needed? */ in pmap_enter_86()
2516 pd[l2idx] = (npa | PG_RW | PG_V | PG_M | PG_U); in pmap_enter_special_86()
[all …]
H A Dhibernate_machdep.c240 npde = (pa & HIB_PD_MASK) | PG_RW | PG_V | PG_M | PG_PS; in hibernate_enter_resume_4m_pde()
253 npte = (pa & PMAP_PA_MASK) | PG_RW | PG_V | PG_M; in hibernate_enter_resume_4k_pte()
266 npde = (HIBERNATE_PT_PAGE & PMAP_PA_MASK) | PG_RW | PG_V | PG_M; in hibernate_enter_resume_4k_pde()
H A Dlapic.c93 pmap_pte_set(va, lapic_base, PG_RW | PG_V | PG_N); in lapic_map()
H A Dmachdep.c3036 pmap_pte_setbits(va, 0, PG_RW); in fix_f00f()
/openbsd/sys/arch/i386/include/
H A Dpte.h55 #define PG_RW 0x00000002 /* read-write page */ macro
H A Dpmap.h392 (void) pmap_clear_attrs(pg, PG_RW); in pmap_page_protect()
/openbsd/sys/dev/pci/drm/include/asm/
H A Dpgtable.h37 #define _PAGE_RW PG_RW
/openbsd/regress/sys/arch/amd64/dump_tables/
H A Ddump_tables.c164 e & PG_RW ? 'W' : '-', in pflags()
167 inherited & PG_RW ? 'W' : '-', in pflags()
/openbsd/sys/arch/amd64/include/
H A Dpte.h111 #define PG_RW 0x0000000000000002UL /* read-write */ macro
H A Dpmap.h463 (void) pmap_clear_attrs(pg, PG_RW); in pmap_page_protect()
/openbsd/sys/arch/m88k/include/
H A Dmmu.h119 #define PG_RW 0x00000000 macro
/openbsd/sys/arch/m88k/m88k/
H A Dpmap.c181 #define m88k_protection(prot) ((prot) & PROT_WRITE ? PG_RW : PG_RO)
758 *pte++ = pa | PG_SO | PG_RW | PG_M_U | PG_W | PG_V | CACHE_WT; in pmap_bootstrap()
760 *pte++ = pa | PG_SO | PG_RW | PG_M_U | PG_W | PG_V; in pmap_bootstrap()
766 *pte++ = pa | PG_SO | PG_RW | PG_M_U | PG_V; in pmap_bootstrap()
775 template = PG_SO | PG_RW | PG_M_U | PG_W | PG_V | pte_cmode; in pmap_bootstrap()
/openbsd/usr.sbin/vmd/
H A Dloadfile_elf.c212 ptes[i] = PG_V | PG_RW | PG_u | PG_PS | ((4096 * 1024) * i); in push_pt_32()
237 ptes[0] = pg_crypt | PG_V | PG_RW | PG_u | PML2_PAGE; in push_pt_64()
244 ptes[i] = pg_crypt | PG_V | PG_RW | PG_u | PG_PS | in push_pt_64()
H A Dx86_vm.c1186 if ((mode == PROT_WRITE) && !(pte & PG_RW)) in translate_gva()