From: mlarkin Date: Sun, 7 Jan 2018 05:35:10 +0000 (+0000) Subject: remove a ridiculous comment and move another comment to the line it was X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=20250815d479b59b15f19748d5ec325d6ab820d7;p=openbsd remove a ridiculous comment and move another comment to the line it was really intended to describe. no functional change --- diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 100ab21175b..85598eed545 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -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 */ /*