Lines Matching defs:kernel_pmap
608 pmap_t kernel_pmap;
687 if (!cpu_64bit || (m == kernel_pmap)) {
835 if (pmap == kernel_pmap)
886 pmap_enter(kernel_pmap, (vm_map_offset_t)virt,
929 pte = pmap_pte(kernel_pmap, (vm_map_offset_t)virt);
967 current_cpu_datap()->cpu_active_cr3 = kernel_pmap->pm_cr3;
982 ptep = pmap_pte(kernel_pmap, (vm_map_offset_t)ve);
1035 pte_unique_base = pmap_pte(kernel_pmap, (vm_map_offset_t)pmap_index_to_virt(HIGH_FIXED_CPUS_BEGIN));
1152 kernel_pmap = &kernel_pmap_store;
1153 kernel_pmap->ref_count = 1;
1154 kernel_pmap->nx_enabled = FALSE;
1155 kernel_pmap->pm_task_map = TASK_MAP_32BIT;
1156 kernel_pmap->pm_obj = (vm_object_t) NULL;
1157 kernel_pmap->dirbase = (pd_entry_t *)((unsigned int)IdlePTD | KERNBASE);
1158 kernel_pmap->pdirbase = (pmap_paddr_t)((int)IdlePTD);
1160 kernel_pmap->pm_pdpt = pdpt;
1161 kernel_pmap->pm_cr3 = (pmap_paddr_t)((int)IdlePDPT);
1163 va = (vm_offset_t)kernel_pmap->dirbase;
1169 (pd_entry_t *) (kernel_pmap->dirbase + PTDPTDI + i),
1177 lo_kernel_cr3 = kernel_pmap->pm_cr3;
1178 current_cpu_datap()->cpu_kernel_cr3 = (addr64_t) kernel_pmap->pm_cr3;
1181 high_shared_pde = *pmap_pde(kernel_pmap, HIGH_MEM_BASE);
1185 pmap_store_pte(pmap_pde(kernel_pmap, HIGH_MEM_BASE), high_shared_pde);
1247 ptep = pmap_pte(kernel_pmap, (vm_map_offset_t)myva);
1254 pte = pmap_pte(kernel_pmap, 0);
1258 if (0 == (pte = pmap_pte(kernel_pmap,0x2000))) panic("lowmem pte");
1264 simple_lock_init(&kernel_pmap->lock, 0);
1286 kernel_pmap->pm_cr3 = (pmap_paddr_t)((int)IdlePML4); /* setup in start.s for us */
1287 kernel_pmap->pm_pml4 = IdlePML4;
1288 kernel_pmap->pm_pdpt = (pd_entry_t *)
1291 pmap_store_pte(kernel_pmap->pm_pml4,
1304 kernel64_cr3 = (addr64_t) kernel_pmap->pm_cr3;
1319 kernel_pmap->pm_hold = (vm_offset_t)kernel_pmap->pm_pml4;
1446 kernel_pmap->pm_obj = kptobj;
1459 pv_e->pmap = kernel_pmap;
1535 if (pmap != kernel_pmap &&
1676 pmap_store_pte((pml4p+KERNEL_UBER_PML4_INDEX),*kernel_pmap->pm_pml4);
1759 kern_pdptp = kernel_pmap->pm_pdpt;
1942 if (pmap != kernel_pmap &&
2188 if (map == kernel_pmap) {
2336 if (remove || pmap == kernel_pmap) {
2675 if (pmap != kernel_pmap)
2879 if (kernel_pmap == pmap) {
2936 if (pmap != kernel_pmap)
3075 if (kernel_pmap == map) panic("expand kernel pml4");
3162 if (kernel_pmap == map) panic("expand kernel pdpt");
3274 if (cpu_64bit && (map != kernel_pmap)) {
3410 if (p == kernel_pmap)
3943 dirbase = kernel_pmap->dirbase;
4131 opte = pmap_pte(kernel_pmap, (vm_map_offset_t)kernel_commpage);
4136 npte = pmap_pte(kernel_pmap, (vm_map_offset_t)user_commpage);
4156 PMAP_LOCK(kernel_pmap);
4159 kptep = pmap_pte(kernel_pmap, (uint64_t)kernel_commpage + (i*PAGE_SIZE));
4164 PMAP_UNLOCK(kernel_pmap);
4211 while ((pte = pmap_pte(kernel_pmap, (vm_map_offset_t)address)) == 0)
4212 pmap_expand(kernel_pmap, (vm_map_offset_t)address);
4547 ((pmap == kernel_pmap) &&
4681 kern_pdptp = kernel_pmap->pm_pdpt;
4719 kernel_pmap->pm_cr3, kernel_pmap->pm_hold, kernel_pmap->pm_pml4);
4720 pml4p = (pdpt_entry_t *)kernel_pmap->pm_hold;