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:
parent
aedc51f11a
commit
48fca66157
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user