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/alpha | |
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/alpha')
-rw-r--r-- | sys/alpha/alpha/pmap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index f90cebd..0e7aa73 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -43,7 +43,7 @@ * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 * from: i386 Id: pmap.c,v 1.193 1998/04/19 15:22:48 bde Exp * with some ideas from NetBSD's alpha pmap - * $Id: pmap.c,v 1.10 1998/09/04 18:49:35 dfr Exp $ + * $Id: pmap.c,v 1.11 1998/10/21 11:38:06 dg Exp $ */ /* @@ -1045,7 +1045,7 @@ pmap_dispose_proc(p) *(ptek + i) = 0; pmap_invalidate_page(kernel_pmap, (vm_offset_t)p->p_addr + i * PAGE_SIZE); - vm_page_unwire(m); + vm_page_unwire(m, 0); vm_page_free(m); } } @@ -1069,8 +1069,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); } } |