- Pass the VM_ALLOC_WIRED flag to vm_page_alloc() in pmap_growkernel() so

that we can avoid a call to vm_page_lock_queues().

Approved by:	peter
This commit is contained in:
Andrew R. Reiter 2002-07-23 04:18:10 +00:00
parent 8ffc151979
commit ef098feafc

View File

@ -854,15 +854,12 @@ pmap_growkernel(vm_offset_t addr)
/*
* This index is bogus, but out of the way
*/
nkpg = vm_page_alloc(kptobj, nkpt, VM_ALLOC_SYSTEM);
nkpg = vm_page_alloc(kptobj, nkpt,
VM_ALLOC_SYSTEM | VM_ALLOC_WIRED);
if (!nkpg)
panic("pmap_growkernel: no memory to grow kernel");
nkpt++;
vm_page_lock_queues();
vm_page_wire(nkpg);
vm_page_unlock_queues();
ptepage = (struct ia64_lpte *)
IA64_PHYS_TO_RR7(VM_PAGE_TO_PHYS(nkpg));
bzero(ptepage, PAGE_SIZE);