/freebsd/stand/kboot/kboot/arch/amd64/ |
H A D | elf64_freebsd.c | 263 PT4[i] |= PG_V | PG_RW; in elf64_exec() 270 PT3[i] |= PG_V | PG_RW; in elf64_exec() 276 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec() 301 PT4[0] = (pml4_entry_t)PT3_l | PG_V | PG_RW; in elf64_exec() 302 PT3_l[0] = (pdp_entry_t)PT2_l0 | PG_V | PG_RW; in elf64_exec() 303 PT3_l[1] = (pdp_entry_t)PT2_l1 | PG_V | PG_RW; in elf64_exec() 304 PT3_l[2] = (pdp_entry_t)PT2_l2 | PG_V | PG_RW; in elf64_exec() 305 PT3_l[3] = (pdp_entry_t)PT2_l3 | PG_V | PG_RW; in elf64_exec() 307 PT2_l0[i] = ((pd_entry_t)i << PDRSHIFT) | PG_V | in elf64_exec() 312 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 | 67 #define PG_V 0x001 macro 192 PT4[i] = (uintptr_t)PT3 | PG_V | PG_RW; in elf64_exec() 198 PT3[i] = (uintptr_t)PT2 | PG_V | PG_RW; in elf64_exec() 203 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] = ((p2_entry_t)i * M(2)) | PG_V | PG_RW | PG_PS; in elf64_exec() [all …]
|
/freebsd/stand/efi/loader/arch/amd64/ |
H A D | elf64_freebsd.c | 150 PT4[i] |= PG_V | PG_RW; in elf64_exec() 157 PT3[i] |= PG_V | PG_RW; in elf64_exec() 163 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec() 189 PT4[0] = (pml4_entry_t)PT3_l | PG_V | PG_RW; in elf64_exec() 190 PT3_l[0] = (pdp_entry_t)PT2_l0 | PG_V | PG_RW; in elf64_exec() 191 PT3_l[1] = (pdp_entry_t)PT2_l1 | PG_V | PG_RW; in elf64_exec() 192 PT3_l[2] = (pdp_entry_t)PT2_l2 | PG_V | PG_RW; in elf64_exec() 193 PT3_l[3] = (pdp_entry_t)PT2_l3 | PG_V | PG_RW; in elf64_exec() 195 PT2_l0[i] = ((pd_entry_t)i << PDRSHIFT) | PG_V | in elf64_exec() 200 PT4[NPML4EPG - 1] = (pml4_entry_t)PT3_u | PG_V | PG_RW; in elf64_exec() [all …]
|
/freebsd/sys/i386/i386/ |
H A D | minidump_machdep_base.c | 186 if ((pde & (PG_PS | PG_V)) == (PG_PS | PG_V)) { in cpu_minidumpsys() 197 if ((pde & PG_V) == PG_V) { in cpu_minidumpsys() 202 if ((pte & PG_V) == PG_V) { in cpu_minidumpsys() 286 if ((pde & (PG_PS | PG_V)) == (PG_PS | PG_V)) { in cpu_minidumpsys() 290 fakept[k] = (pa + (k * PAGE_SIZE)) | PG_V | PG_RW | PG_A | PG_M; in cpu_minidumpsys() 301 if ((pde & PG_V) == PG_V) { in cpu_minidumpsys()
|
H A D | pmap.c | 195 #define pmap_pde_v(pte) ((*(int *)pte & PG_V) != 0) 199 #define pmap_pte_v(pte) ((*(int *)pte & PG_V) != 0) 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() 475 IdlePDPT[a] = ((u_int)IdlePTD + ptoa(a)) | PG_V; in __CONCAT() 483 IdlePTD[PTDPTDI + a] = ((u_int)IdlePTD + ptoa(a)) | PG_V | in __CONCAT() 519 *(pt_entry_t *)vm86pa = 0 | PG_RW | PG_U | PG_A | PG_M | PG_V; in __CONCAT() 525 PG_M | PG_V; in __CONCAT() 538 PG_RW | PG_V; in __CONCAT() 706 KPTD[i] = (KPTphys + ptoa(i)) | PG_RW | PG_V; in __CONCAT() [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 | machdep.c | 1159 ptr = (int *)pmap_cmap3(pa, PG_V | PG_RW | PG_N); in getmemsize()
|
/freebsd/stand/i386/libi386/ |
H A D | elf64_freebsd.c | 46 #define PG_V 0x001 macro 95 PT4[i] |= PG_V | PG_RW; in elf64_exec() 99 PT3[i] |= PG_V | PG_RW; in elf64_exec() 103 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec()
|
/freebsd/sys/amd64/amd64/ |
H A D | xen-locore.S | 59 ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID, .long, PG_V, PG_V) 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 | pmap.c | 1419 pt_entry_t PG_V; in pmap_pml4e() local 1423 PG_V = pmap_valid_bit(pmap); in pmap_pml4e() 1424 if ((*pml5e & PG_V) == 0) in pmap_pml4e() 1455 pt_entry_t PG_V; in pmap_pdpe() local 1457 PG_V = pmap_valid_bit(pmap); in pmap_pdpe() 1459 if (pml4e == NULL || (*pml4e & PG_V) == 0) in pmap_pdpe() 1481 pt_entry_t PG_V; in pmap_pde() local 1483 PG_V = pmap_valid_bit(pmap); in pmap_pde() 1485 if (pdpe == NULL || (*pdpe & PG_V) == 0) in pmap_pde() 1509 pt_entry_t PG_V; in pmap_pte() local [all …]
|
H A D | minidump_machdep.c | 199 if ((pdpe & PG_V) == 0) { in cpu_minidumpsys() 223 if ((pde & PG_V) == 0) in cpu_minidumpsys() 246 if ((pte & PG_V) == 0) in cpu_minidumpsys() 333 if ((pdpe & PG_V) == 0) { in cpu_minidumpsys()
|
H A D | machdep.c | 1019 *pte = pa | PG_V | PG_RW | PG_NC_PWT | PG_NC_PCD; in getmemsize()
|
/freebsd/stand/userboot/userboot/ |
H A D | elf64_freebsd.c | 58 #define PG_V 0x001 macro 126 PT4[i] |= PG_V | PG_RW; in elf64_exec() 130 PT3[i] |= PG_V | PG_RW; in elf64_exec() 134 PT2[i] |= PG_V | PG_RW | PG_PS; in elf64_exec()
|
/freebsd/sys/powerpc/aim/ |
H A D | mmu_radix.c | 105 #define PG_V RPTE_VALID macro 845 *(u_long *)(ptep) = htobe64((u_long)((pte) | PG_V | RPTE_LEAF)); \ 865 PG_M | PG_A | RPTE_EAA_MASK | PG_V) 941 if (l3e == NULL || (be64toh(*l3e) & PG_V) == 0) in pmap_nofault_pte() 951 if (pte == NULL || (be64toh(*pte) & PG_V) == 0) in pmap_nofault_pte() 2236 if ((be64toh(*l1e) & PG_V) == 0) { in mmu_radix_advise() 2243 if ((be64toh(*l2e) & PG_V) == 0) { in mmu_radix_advise() 2254 if ((oldl3e & PG_V) == 0) in mmu_radix_advise() 2287 KASSERT((be64toh(*pte) & PG_V) != 0, in mmu_radix_advise() 2303 if ((be64toh(*pte) & (PG_MANAGED | PG_V)) ! in mmu_radix_advise() [all...] |
/freebsd/sys/i386/include/ |
H A D | pmap.h | 50 #define PG_V 0x001 /* P Valid */ macro 83 PG_M | PG_NC_PCD | PG_NC_PWT | PG_U | PG_RW | PG_V)
|
H A D | pmap_pae.h | 104 MPASS((*ptep & PG_V) == 0); \
|
/freebsd/lib/libkvm/ |
H A D | kvm_i386.h | 73 _Static_assert(PG_V == I386_PG_V, "PG_V mismatch");
|
H A D | kvm_amd64.h | 79 _Static_assert(PG_V == AMD64_PG_V, "PG_V mismatch");
|
/freebsd/sys/amd64/include/ |
H A D | pmap.h | 96 #define PG_V X86_PG_V macro 129 PG_M | PG_U | PG_RW | PG_V | PG_PKU_MASK) 162 #undef PG_V
|
/freebsd/sys/amd64/vmm/ |
H A D | vmm_instruction_emul.c | 2031 if (pte & PG_V) in pf_error_code() 2120 if ((pte32 & PG_V) == 0 || in _vm_gla2gpa() 2179 if ((pte & PG_V) == 0) { in _vm_gla2gpa() 2210 if ((pte & PG_V) == 0 || in _vm_gla2gpa()
|