aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64
diff options
context:
space:
mode:
authorAndrew R. Reiter <arr@FreeBSD.org>2002-07-23 04:18:10 +0000
committerAndrew R. Reiter <arr@FreeBSD.org>2002-07-23 04:18:10 +0000
commitef098feafc3b0babb3368cb329243d73977c18d1 (patch)
treee544901dac7806c618b04a6f121c065d0107543e /sys/ia64
parent8ffc151979323c1ef75d2fc51445d6a19ae75485 (diff)
downloadsrc-ef098feafc3b0babb3368cb329243d73977c18d1.tar.gz
src-ef098feafc3b0babb3368cb329243d73977c18d1.zip
- 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
Notes
Notes: svn path=/head/; revision=100543
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/pmap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c
index ac7464e496e5..05ad4dd70591 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);