remove a ridiculous comment and move another comment to the line it was
authormlarkin <mlarkin@openbsd.org>
Sun, 7 Jan 2018 05:35:10 +0000 (05:35 +0000)
committermlarkin <mlarkin@openbsd.org>
Sun, 7 Jan 2018 05:35:10 +0000 (05:35 +0000)
really intended to describe. no functional change

sys/arch/amd64/amd64/pmap.c

index 100ab21..85598ee 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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 $ */
 
 /*
@@ -620,10 +620,7 @@ pmap_bootstrap(paddr_t first_avail, paddr_t max_pa)
         *
         * 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();
@@ -636,14 +633,13 @@ pmap_bootstrap(paddr_t first_avail, paddr_t max_pa)
        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 */
 
        /*