Author: jtl
Date: Mon Feb 12 17:27:50 2018
New Revision: 329171
URL: https://svnweb.freebsd.org/changeset/base/329171
Log:
Mark the pages used for the initial page-table entries as wired. This
makes them consistent with the way other page-table pages are allocated.
It also provides the rest of the VM system a good clue that these pages
are used.
Reviewed by: alc, kib, markj
Sponsored by: Netflix
Differential Revision:https://reviews.freebsd.org/D14269
Modified:
head/sys/amd64/amd64/pmap.c
Modified: head/sys/amd64/amd64/pmap.c
==
--- head/sys/amd64/amd64/pmap.c Mon Feb 12 16:25:56 2018(r329170)
+++ head/sys/amd64/amd64/pmap.c Mon Feb 12 17:27:50 2018(r329171)
@@ -1244,7 +1244,9 @@ pmap_init(void)
("pmap_init: page table page is out of range"));
mpte->pindex = pmap_pde_pindex(KERNBASE) + i;
mpte->phys_addr = KPTphys + (i << PAGE_SHIFT);
+ mpte->wire_count = 1;
}
+ atomic_add_int(_cnt.v_wire_count, nkpt);
/*
* If the kernel is running on a virtual machine, then it must assume
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"