/freebsd/stand/kboot/kboot/arch/amd64/ |
H A D | elf64_freebsd.c | 261 PT4[i] |= PG_V | PG_RW; in elf64_exec() 268 PT3[i] |= PG_V | PG_RW; in elf64_exec() 274 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec() 299 PT4[0] = (pml4_entry_t)PT3_l | PG_V | PG_RW; in elf64_exec() 300 PT3_l[0] = (pdp_entry_t)PT2_l0 | PG_V | PG_RW; in elf64_exec() 301 PT3_l[1] = (pdp_entry_t)PT2_l1 | PG_V | PG_RW; in elf64_exec() 302 PT3_l[2] = (pdp_entry_t)PT2_l2 | PG_V | PG_RW; in elf64_exec() 303 PT3_l[3] = (pdp_entry_t)PT2_l3 | PG_V | PG_RW; in elf64_exec() 306 PG_RW | PG_PS; in elf64_exec() 310 PT4[NPML4EPG - 1] = (pml4_entry_t)PT3_u | PG_V | PG_RW; in elf64_exec() [all …]
|
/freebsd/stand/efi/loader/arch/amd64/ |
H A D | elf64_freebsd.c | 144 PT4[i] |= PG_V | PG_RW; in elf64_exec() 151 PT3[i] |= PG_V | PG_RW; in elf64_exec() 157 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec() 183 PT4[0] = (pml4_entry_t)PT3_l | PG_V | PG_RW; in elf64_exec() 184 PT3_l[0] = (pdp_entry_t)PT2_l0 | PG_V | PG_RW; in elf64_exec() 185 PT3_l[1] = (pdp_entry_t)PT2_l1 | PG_V | PG_RW; in elf64_exec() 186 PT3_l[2] = (pdp_entry_t)PT2_l2 | PG_V | PG_RW; in elf64_exec() 187 PT3_l[3] = (pdp_entry_t)PT2_l3 | PG_V | PG_RW; in elf64_exec() 190 PG_RW | PG_PS; in elf64_exec() 194 PT4[NPML4EPG - 1] = (pml4_entry_t)PT3_u | PG_V | PG_RW; in elf64_exec() [all …]
|
/freebsd/stand/efi/loader/arch/i386/ |
H A D | elf64_freebsd.c | 189 PT4[i] = (uintptr_t)PT3 | PG_V | PG_RW; in elf64_exec() 195 PT3[i] = (uintptr_t)PT2 | PG_V | PG_RW; in elf64_exec() 200 PT2[i] = (i * M(2)) | PG_V | PG_RW | PG_PS; in elf64_exec() 226 PT4[0] = (uintptr_t)PT3_l | PG_V | PG_RW; in elf64_exec() 227 PT3_l[0] = (uintptr_t)PT2_l0 | PG_V | PG_RW; in elf64_exec() 228 PT3_l[1] = (uintptr_t)PT2_l1 | PG_V | PG_RW; in elf64_exec() 229 PT3_l[2] = (uintptr_t)PT2_l2 | PG_V | PG_RW; in elf64_exec() 230 PT3_l[3] = (uintptr_t)PT2_l3 | PG_V | PG_RW; in elf64_exec() 232 PT2_l0[i] = ((pd_entry_t)i * M(2)) | PG_V | PG_RW | PG_PS; in elf64_exec() 236 PT4[511] = (uintptr_t)PT3_u | PG_V | PG_RW; in elf64_exec() [all …]
|
/freebsd/sys/amd64/acpica/ |
H A D | acpi_wakeup.c | 428 pt5[0] |= PG_V | PG_RW | PG_U; in acpi_install_wakeup_handler() 434 pt4[0] |= PG_V | PG_RW | PG_U; in acpi_install_wakeup_handler() 437 pt3[0] |= PG_V | PG_RW | PG_U; in acpi_install_wakeup_handler() 439 pt3[1] |= PG_V | PG_RW | PG_U; in acpi_install_wakeup_handler() 441 pt3[2] |= PG_V | PG_RW | PG_U; in acpi_install_wakeup_handler() 443 pt3[3] |= PG_V | PG_RW | PG_U; in acpi_install_wakeup_handler() 447 pt2_0[i] |= PG_V | PG_RW | PG_PS | PG_U; in acpi_install_wakeup_handler() 451 pt2_1[i] |= PG_V | PG_RW | PG_PS | PG_U; in acpi_install_wakeup_handler() 455 pt2_2[i] |= PG_V | PG_RW | PG_PS | PG_U; in acpi_install_wakeup_handler() 459 pt2_3[i] |= PG_V | PG_RW | PG_PS | PG_U; in acpi_install_wakeup_handler()
|
/freebsd/sys/i386/i386/ |
H A D | pmap.c | 399 *pt = pa | PG_V | PG_RW | PG_A | PG_M; in pmap_cold_map() 470 IdlePTD[a] = (KPTphys + ptoa(a)) | PG_V | PG_RW | PG_A | PG_M; in __CONCAT() 484 PG_RW; in __CONCAT() 519 *(pt_entry_t *)vm86pa = 0 | PG_RW | PG_U | PG_A | PG_M | PG_V; in __CONCAT() 524 *pt = (ISA_HOLE_START + ptoa(a)) | PG_RW | PG_U | PG_A | in __CONCAT() 538 PG_RW | PG_V; in __CONCAT() 706 KPTD[i] = (KPTphys + ptoa(i)) | PG_RW | PG_V; in __CONCAT() 1518 *PMAP2 = newpf | PG_RW | PG_V | PG_A | PG_M; in __CONCAT() 1580 *PMAP1 = newpf | PG_RW | PG_V | PG_A | PG_M; in pmap_pte_quick() 1614 *PMAP3 = newpf | PG_RW | PG_ in pmap_pte_quick3() [all...] |
H A D | vm86.c | 487 pcb->new_ptd = vm86pa | PG_V | PG_RW | PG_U; in vm86_initialize_pae() 551 pcb->new_ptd = vm86pa | PG_V | PG_RW | PG_U; in vm86_initialize_nopae() 739 pte_pae[entry] = page | PG_V | PG_RW | PG_U; in vm86_datacall() 748 pte_nopae[entry] = page | PG_V | PG_RW | PG_U; in vm86_datacall()
|
H A D | minidump_machdep_base.c | 290 fakept[k] = (pa + (k * PAGE_SIZE)) | PG_V | PG_RW | PG_A | PG_M; in cpu_minidumpsys()
|
H A D | machdep.c | 1155 ptr = (int *)pmap_cmap3(pa, PG_V | PG_RW | PG_N); in getmemsize()
|
/freebsd/stand/i386/libi386/ |
H A D | elf64_freebsd.c | 97 PT4[i] |= PG_V | PG_RW; in elf64_exec() 101 PT3[i] |= PG_V | PG_RW; in elf64_exec() 105 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec()
|
/freebsd/stand/userboot/userboot/ |
H A D | elf64_freebsd.c | 113 PT4[i] |= PG_V | PG_RW; in elf64_exec() 117 PT3[i] |= PG_V | PG_RW; in elf64_exec() 121 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec()
|
/freebsd/sys/amd64/amd64/ |
H A D | pmap.c | 3900 pt_entry_t pte, PG_RW, PG_V; in pmap_extract_and_hold() local 3904 PG_RW = pmap_rw_bit(pmap); in pmap_extract_and_hold() 3912 if ((pdpe & PG_RW) == 0 && (prot & VM_PROT_WRITE) != 0) in pmap_extract_and_hold() 3922 if ((pde & PG_RW) == 0 && (prot & VM_PROT_WRITE) != 0) in pmap_extract_and_hold() 3930 ((pte & PG_RW) == 0 && (prot & VM_PROT_WRITE) != 0)) in pmap_extract_and_hold() 4702 pt_entry_t PG_A, PG_M, PG_RW, PG_V; in pmap_allocpte_nosleep() local 4709 PG_RW = pmap_rw_bit(pmap); in pmap_allocpte_nosleep() 4730 *pml5 = VM_PAGE_TO_PHYS(m) | PG_U | PG_RW | PG_V | PG_A | PG_M; in pmap_allocpte_nosleep() 4737 *pml5u = VM_PAGE_TO_PHYS(m) | PG_U | PG_RW | PG_V | in pmap_allocpte_nosleep() 4750 *pml4 = VM_PAGE_TO_PHYS(m) | PG_U | PG_RW | PG_V | PG_A | PG_M; in pmap_allocpte_nosleep() [all …]
|
H A D | xen-locore.S | 105 orl $(PG_V | PG_RW | PG_U), %edx 111 orl $(PG_V | PG_RW | PG_U), %edx 118 orl $(PG_V | PG_RW | PG_PS | PG_U), %edx
|
H A D | machdep.c | 1020 *pte = pa | PG_V | PG_RW | PG_NC_PWT | PG_NC_PCD; in getmemsize()
|
/freebsd/sys/powerpc/aim/ |
H A D | mmu_radix.c | 111 #define PG_RW RPTE_EAA_W macro 1465 if ((tpte & (PG_M | PG_RW)) == (PG_M | PG_RW)) in reclaim_pv_chunk() 2305 else if ((be64toh(*pte) & (PG_M | PG_RW)) == (PG_M | PG_RW)) { in mmu_radix_advise() 2468 if ((oldl3e & PG_RW) != 0 && in mmu_radix_clear_modify() 2482 htobe64((oldpte | RPTE_EAA_R) & ~(PG_M | PG_RW)))) in mmu_radix_clear_modify() 2506 if ((be64toh(*pte) & (PG_M | PG_RW)) == (PG_M | PG_RW)) { in mmu_radix_clear_modify() 2745 if ((newpde & (PG_M | PG_RW)) == PG_RW) { in pmap_promote_l3e() 2769 if ((oldpte & (PG_M | PG_RW)) == PG_RW) { in pmap_promote_l3e() 2862 KASSERT((newpte & (PG_M | PG_RW)) != PG_M, in mmu_radix_enter() 2878 if ((newpte & PG_RW) != 0) in mmu_radix_enter() [all …]
|
/freebsd/sys/i386/include/ |
H A D | pmap.h | 51 #define PG_RW 0x002 /* R/W Read/Write */ macro 71 #define PG_PROT (PG_RW|PG_U) /* all protection bits . */ 83 PG_M | PG_NC_PCD | PG_NC_PWT | PG_U | PG_RW | PG_V)
|
/freebsd/sys/amd64/include/ |
H A D | pmap.h | 56 #define PG_RW X86_PG_RW macro 85 PG_M | PG_U | PG_RW | PG_V | PG_PKU_MASK) 105 #undef PG_RW
|
/freebsd/sys/amd64/vmm/ |
H A D | vmm_instruction_emul.c | 2136 (writable && (pte32 & PG_RW) == 0)) { in _vm_gla2gpa() 2226 (writable && (pte & PG_RW) == 0)) { in _vm_gla2gpa()
|