Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/alpha in vunmapbuf(), call pmap_*remove() exp...



details:   https://anonhg.NetBSD.org/src/rev/a62cd678b777
branches:  trunk
changeset: 513995:a62cd678b777
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Aug 19 17:34:01 2001 +0000

description:
in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.

diffstat:

 sys/arch/alpha/alpha/vm_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e29229964d18 -r a62cd678b777 sys/arch/alpha/alpha/vm_machdep.c
--- a/sys/arch/alpha/alpha/vm_machdep.c Sun Aug 19 17:33:10 2001 +0000
+++ b/sys/arch/alpha/alpha/vm_machdep.c Sun Aug 19 17:34:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.72 2001/07/18 22:22:49 thorpej Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.73 2001/08/19 17:34:01 chs Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.72 2001/07/18 22:22:49 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.73 2001/08/19 17:34:01 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -336,6 +336,8 @@
        addr = trunc_page((vaddr_t)bp->b_data);
        off = (vaddr_t)bp->b_data - addr;
        len = round_page(off + len);
+       pmap_remove(vm_map_pmap(phys_map), addr, addr + len);
+       pmap_update();
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;
        bp->b_saveaddr = NULL;



Home | Main Index | Thread Index | Old Index