/src/sys/arch/sun2/sun2/ |
control.c | 37 #include <machine/pte.h> 55 u_int pte; local in function:get_pte 57 pte = get_control_word(CONTROL_ADDR_BUILD(PGMAP_BASE, va)); 58 if (pte & PG_VALID) { 67 * readable bit). See pte.h for more about this 70 pte &= ~(0x56000000); 75 pte ^= (PG_SYSTEM); 77 return (pte); 81 set_pte(vaddr_t va, u_int pte) 83 if (pte & PG_VALID) [all...] |
control.c | 37 #include <machine/pte.h> 55 u_int pte; local in function:get_pte 57 pte = get_control_word(CONTROL_ADDR_BUILD(PGMAP_BASE, va)); 58 if (pte & PG_VALID) { 67 * readable bit). See pte.h for more about this 70 pte &= ~(0x56000000); 75 pte ^= (PG_SYSTEM); 77 return (pte); 81 set_pte(vaddr_t va, u_int pte) 83 if (pte & PG_VALID) [all...] |
db_machdep.c | 46 #include <machine/pte.h> 66 "Prints the PTE and segmap values", "virtual-address", NULL) }, 77 * pgmap: Given addr, Print addr, segmap, pagemap, pte 109 int pte; local in function:db_mach_pagemap 113 if (sme == 0xFF) pte = 0; 114 else pte = get_pte(va); 115 db_printf("0x%08lx [%02x] 0x%08x", va, sme, pte); 117 pte_print(pte); 122 pte_print(int pte) 129 if (pte & PG_VALID) [all...] |
/src/sys/arch/sh3/sh3/ |
kgdb_machdep.c | 94 pt_entry_t *pte; local in function:kvacc 111 pte = __pmap_kpte_lookup(kva); 112 if (!(*pte & PG_V))
|
kgdb_machdep.c | 94 pt_entry_t *pte; local in function:kvacc 111 pte = __pmap_kpte_lookup(kva); 112 if (!(*pte & PG_V))
|
locore_c.c | 176 * Prepare kernel stack PTE table. sh4_switch_resume wires these PTEs. 183 pt_entry_t *pte; local in function:sh4_switch_setup 191 pte = __pmap_kpte_lookup(vpn); 192 KDASSERT(pte && *pte != 0); 201 md_upte->data = (*pte & PG_HW_BITS) |
|
/src/sys/arch/x86/x86/ |
kgdb_machdep.c | 74 #include <machine/pte.h> 84 pt_entry_t *pte; local in function:kgdb_acc 92 pte = vtopte(va); 94 pte = kvtopte(va); 95 if ((*pte & PTE_P) == 0) 97 if (*pte & PTE_PS)
|
kgdb_machdep.c | 74 #include <machine/pte.h> 84 pt_entry_t *pte; local in function:kgdb_acc 92 pte = vtopte(va); 94 pte = kvtopte(va); 95 if ((*pte & PTE_P) == 0) 97 if (*pte & PTE_PS)
|
db_memrw.c | 38 * the page writable, do the write, then restore the PTE. 136 pt_entry_t *ppte, pte; local in function:db_write_text 148 * Get the PTE for the page. 151 pte = *ppte; 153 if ((pte & PTE_P) == 0) { 165 if (pte & PTE_PS) 180 * MULTIPROCESSOR: no shootdown required as the PTE continues to 199 * should be in CPUF_PAUSE state and will not cache the PTE
|
/src/lib/libkvm/ |
kvm_i386pae.c | 57 #include <i386/pte.h> 73 pt_entry_t pte; local in function:_kvm_kvatop_i386pae 110 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), 111 _kvm_pa2off(kd, pte_pa)) != sizeof(pte)) { 112 _kvm_syserr(kd, 0, "could not read PTE"); 117 * Validate the PTE and return the physical address. 119 if ((pte & PTE_P) == 0) { 120 _kvm_err(kd, 0, "invalid translation (invalid PTE)"); 123 *pa = (pte & PTE_FRAME) + page_off [all...] |
kvm_i386pae.c | 57 #include <i386/pte.h> 73 pt_entry_t pte; local in function:_kvm_kvatop_i386pae 110 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), 111 _kvm_pa2off(kd, pte_pa)) != sizeof(pte)) { 112 _kvm_syserr(kd, 0, "could not read PTE"); 117 * Validate the PTE and return the physical address. 119 if ((pte & PTE_P) == 0) { 120 _kvm_err(kd, 0, "invalid translation (invalid PTE)"); 123 *pa = (pte & PTE_FRAME) + page_off [all...] |
kvm_arm.c | 51 #include <arm/arm32/pte.h> 80 pt_entry_t pte; local in function:_kvm_kvatop 136 * locate the pte and load it 138 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pt_entry_t), 143 switch (pte & L2_TYPE_MASK) { 145 *pa = (pte & L2_L_FRAME) | (va & L2_L_OFFSET); 148 *pa = (pte & L2_S_FRAME) | (va & L2_S_OFFSET); 151 *pa = (pte & L2_T_FRAME) | (va & L2_T_OFFSET);
|
kvm_mips.c | 91 u_int pte; local in function:_kvm_kvatop 177 * Step 2: Locate and read the PTE. 181 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), 182 _kvm_pa2off(kd, pte_pa)) != sizeof(pte)) { 183 _kvm_syserr(kd, 0, "could not read PTE"); 188 * Step 3: Validate the PTE and return the physical address. 190 if ((pte & cpu_kh->pg_v) == 0) { 191 _kvm_err(kd, 0, "invalid translation (invalid PTE)"); 194 *pa = (((pte & cpu_kh->pg_frame) >> cpu_kh->pg_shift) << PGSHIFT) [all...] |
kvm_alpha.c | 30 #define __KVM_ALPHA_PRIVATE /* see <machine/pte.h> */ 73 alpha_pt_entry_t pte; local in function:_kvm_kvatop 97 /* Find and read the L1 PTE. */ 100 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), 101 _kvm_pa2off(kd, pteoff)) != sizeof(pte)) { 102 _kvm_syserr(kd, 0, "could not read L1 PTE"); 106 /* Find and read the L2 PTE. */ 107 if ((pte & ALPHA_PTE_VALID) == 0) { 108 _kvm_err(kd, 0, "invalid translation (invalid L1 PTE)"); [all...] |
kvm_arm.c | 51 #include <arm/arm32/pte.h> 80 pt_entry_t pte; local in function:_kvm_kvatop 136 * locate the pte and load it 138 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pt_entry_t), 143 switch (pte & L2_TYPE_MASK) { 145 *pa = (pte & L2_L_FRAME) | (va & L2_L_OFFSET); 148 *pa = (pte & L2_S_FRAME) | (va & L2_S_OFFSET); 151 *pa = (pte & L2_T_FRAME) | (va & L2_T_OFFSET);
|
kvm_mips.c | 91 u_int pte; local in function:_kvm_kvatop 177 * Step 2: Locate and read the PTE. 181 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), 182 _kvm_pa2off(kd, pte_pa)) != sizeof(pte)) { 183 _kvm_syserr(kd, 0, "could not read PTE"); 188 * Step 3: Validate the PTE and return the physical address. 190 if ((pte & cpu_kh->pg_v) == 0) { 191 _kvm_err(kd, 0, "invalid translation (invalid PTE)"); 194 *pa = (((pte & cpu_kh->pg_frame) >> cpu_kh->pg_shift) << PGSHIFT) [all...] |
/src/sys/arch/alpha/alpha/ |
kgdb_machdep.c | 119 pt_entry_t *pte; local in function:kgdb_acc 127 pte = pmap_l3pte(pmap_kernel(), va, NULL); 128 if (pte == NULL || pmap_pte_v(pte) == 0)
|
kgdb_machdep.c | 119 pt_entry_t *pte; local in function:kgdb_acc 127 pte = pmap_l3pte(pmap_kernel(), va, NULL); 128 if (pte == NULL || pmap_pte_v(pte) == 0)
|
/src/sys/arch/arm/s3c2xx0/ |
s3c2xx0_space.c | 175 pt_entry_t *pte; local in function:s3c2xx0_bs_map 197 pte = vtopte(va); 199 *pte &= ~L2_S_CACHE_MASK;
|
/src/sys/arch/ia64/stand/efi/libefi/ |
exec.c | 79 #include <machine/pte.h> 136 pt_entry_t pte; local in function:elf64_exec 190 pte = PTE_PRESENT | PTE_MA_WB | PTE_ACCESSED | PTE_DIRTY | 199 __asm __volatile("itr.d dtr[%0]=%1;;" :: "r"(0), "r"(pte)); 204 __asm __volatile("itr.i itr[%0]=%1;;" :: "r"(0), "r"(pte));
|
/src/sys/arch/sun3/sun3/ |
bus_subr.c | 50 #include <machine/pte.h> 91 int off, pte; local in function:bus_tmapin 102 pte = PA_PGNUM(pa); 103 pte |= (bus_info[bustype].type << PG_MOD_SHIFT); 104 pte |= (PG_VALID | PG_WRITE | PG_SYSTEM | PG_NC); 111 set_pte(pgva, pte);
|
db_machdep.c | 43 #include <machine/pte.h> 65 "Prints the PTE and segmap values", "virtual-address", NULL) }, 76 * pgmap: Given addr, Print addr, segmap, pagemap, pte 110 int pte; local in function:db_mach_pagemap 116 pte = 0; 118 pte = get_pte(va); 120 db_printf("0x%08lx [%02x] 0x%08x", va, sme, pte); 123 pte = get_pte(va); 124 db_printf("0x%08lx 0x%08x", va, pte); 127 pte_print(pte); [all...] |
/src/sys/arch/vax/uba/ |
uba_dma.c | 80 struct pte *pte; local in function:uba_dma_init 110 pte = sc->uv_uba->uba_map; 112 pte = (struct pte *)vax_map_physmem(sc->uv_addr, 113 vax_btoc(vax_btoc(sc->uv_size) * sizeof(struct pte))); 114 if (pte == 0) 120 vax_sgmap_init(t, &sc->uv_sgmap, "uba_sgmap", 0, sc->uv_size, pte, 0);
|
/src/sys/arch/m68k/m68k/ |
db_memrw.c | 63 * the page writable, do the write, then restore the PTE. 112 pt_entry_t *pte, oldpte, tmppte; local in function:db_write_text 141 * prevent a cache hit on the old, read-only PTE. 151 pte = kvtopte(pgva); 152 oldpte = *pte; 158 *pte = tmppte; 168 * Restore the old PTE. 170 *pte = oldpte;
|
/src/sys/arch/cesfic/cesfic/ |
autoconf.c | 50 #include <machine/pte.h> 127 pt_entry_t *pte = kvtopte(va); local in function:mainbus_map 128 *pte |= PG_CI; 129 *pte &= ~PG_CCB;
|