diff options
author | arr <arr@FreeBSD.org> | 2002-07-23 04:18:10 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-07-23 04:18:10 +0000 |
commit | c540d472eb276ef84bd4686ecd8ed70d5aad9b63 (patch) | |
tree | e544901dac7806c618b04a6f121c065d0107543e | |
parent | cba25d9833a3741fb4d9269f565147f14f74f153 (diff) | |
download | FreeBSD-src-c540d472eb276ef84bd4686ecd8ed70d5aad9b63.zip FreeBSD-src-c540d472eb276ef84bd4686ecd8ed70d5aad9b63.tar.gz |
- 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
-rw-r--r-- | sys/ia64/ia64/pmap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index ac7464e..05ad4dd 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -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); |