-/* $OpenBSD: pmap.c,v 1.106 2017/10/14 04:44:43 jsg Exp $ */
+/* $OpenBSD: pmap.c,v 1.107 2018/01/07 05:35:10 mlarkin Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/*
*
* the kernel pmap's pm_obj is not used for much. however, in
* user pmaps the pm_obj contains the list of active PTPs.
- * the pm_obj currently does not have a pager. it might be possible
- * to add a pager that would allow a process to read-only mmap its
- * own page tables (fast user level vtophys?). this may or may not
- * be useful.
+ * the pm_obj currently does not have a pager.
*/
kpm = pmap_kernel();
kpm->pm_pdirpa = proc0.p_addr->u_pcb.pcb_cr3;
kpm->pm_stats.wired_count = kpm->pm_stats.resident_count =
atop(kva_start - VM_MIN_KERNEL_ADDRESS);
-
- kpm->pm_type = PMAP_TYPE_NORMAL;
-
/*
* the above is just a rough estimate and not critical to the proper
* operation of the system.
*/
+ kpm->pm_type = PMAP_TYPE_NORMAL;
+
curpcb->pcb_pmap = kpm; /* proc0's pcb */
/*