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
This commit is contained in:
Jonathan T. Looney 2018-02-12 17:27:50 +00:00
parent aedc51f11a
commit 48fca66157

View File

@ -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(&vm_cnt.v_wire_count, nkpt);
/*
* If the kernel is running on a virtual machine, then it must assume