diff options
author | dg <dg@FreeBSD.org> | 1998-10-28 13:37:02 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1998-10-28 13:37:02 +0000 |
commit | 20b2c33d9ae555690e09419a1d176600738a144a (patch) | |
tree | 74dc0a163081dc84a8bec8ce775734c78d792fba /sys/i386 | |
parent | f09370e8b5c92f2d102862a5ba0edda272351bfd (diff) | |
download | FreeBSD-src-20b2c33d9ae555690e09419a1d176600738a144a.zip FreeBSD-src-20b2c33d9ae555690e09419a1d176600738a144a.tar.gz |
Added a second argument, "activate" to the vm_page_unwire() call so that
the caller can select either inactive or active queue to put the page on.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/pmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 7f49409..35444a4 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.209 1998/09/06 23:04:20 tegge Exp $ + * $Id: pmap.c,v 1.210 1998/10/21 11:38:14 dg Exp $ */ /* @@ -1046,7 +1046,7 @@ pmap_dispose_proc(p) *(ptek + i) = 0; if ((oldpte & PG_G) || (cpu_class > CPUCLASS_386)) invlpg((vm_offset_t) p->p_addr + i * PAGE_SIZE); - vm_page_unwire(m); + vm_page_unwire(m, 0); vm_page_free(m); } @@ -1073,8 +1073,7 @@ pmap_swapout_proc(p) if ((m = vm_page_lookup(upobj, i)) == NULL) panic("pmap_swapout_proc: upage already missing???"); m->dirty = VM_PAGE_BITS_ALL; - vm_page_unwire(m); - vm_page_deactivate(m); + vm_page_unwire(m, 0); pmap_kremove( (vm_offset_t) p->p_addr + PAGE_SIZE * i); } } |