1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Use VM_ALLOC_WIRED in pmap_pinit().

This commit is contained in:
Alan Cox 2002-12-28 08:10:29 +00:00
parent 5b59084cb5
commit fca5d6baba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108344
2 changed files with 2 additions and 8 deletions

View File

@ -1309,10 +1309,7 @@ pmap_pinit(pmap)
* allocate the page directory page
*/
lev1pg = vm_page_grab(pmap->pm_pteobj, NUSERLEV3MAPS + NUSERLEV2MAPS,
VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
lev1pg->wire_count = 1;
++cnt.v_wire_count;
VM_ALLOC_NORMAL | VM_ALLOC_RETRY | VM_ALLOC_WIRED);
vm_page_flag_clear(lev1pg, PG_BUSY);
lev1pg->valid = VM_PAGE_BITS_ALL;

View File

@ -1140,13 +1140,10 @@ pmap_pinit(pmap_t pm)
for (i = 0; i < TSB_PAGES; i++) {
m = vm_page_grab(pm->pm_tsb_obj, i,
VM_ALLOC_RETRY | VM_ALLOC_ZERO);
VM_ALLOC_RETRY | VM_ALLOC_WIRED | VM_ALLOC_ZERO);
if ((m->flags & PG_ZERO) == 0)
pmap_zero_page(m);
m->wire_count++;
cnt.v_wire_count++;
vm_page_flag_clear(m, PG_BUSY);
m->valid = VM_PAGE_BITS_ALL;
m->md.pmap = pm;