diff options
author | alc <alc@FreeBSD.org> | 2002-07-19 19:35:06 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-07-19 19:35:06 +0000 |
commit | 1926ab155f1c8b9139f44c6dee9e11137e730405 (patch) | |
tree | 37146f4642887ac93c2b1882a28d48346a0eb3ea /sys/amd64 | |
parent | ac25bfee41ebab7f11929de59784fd34782b3d4d (diff) | |
download | FreeBSD-src-1926ab155f1c8b9139f44c6dee9e11137e730405.zip FreeBSD-src-1926ab155f1c8b9139f44c6dee9e11137e730405.tar.gz |
o Use vm_page_alloc(... | VM_ALLOC_WIRED) in place of vm_page_wire().
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 9a2f359..d3f76db 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1523,15 +1523,13 @@ 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(); pmap_zero_page(nkpg); ptppaddr = VM_PAGE_TO_PHYS(nkpg); newpdir = (pd_entry_t) (ptppaddr | PG_V | PG_RW | PG_A | PG_M); |