Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/7c982c0d4a08
branches:  trunk
changeset: 513997:7c982c0d4a08
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Aug 19 17:36:28 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/vax/vax/vm_machdep.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 6599d7cb8aae -r 7c982c0d4a08 sys/arch/vax/vax/vm_machdep.c
--- a/sys/arch/vax/vax/vm_machdep.c     Sun Aug 19 17:34:49 2001 +0000
+++ b/sys/arch/vax/vax/vm_machdep.c     Sun Aug 19 17:36:28 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.73 2001/06/02 18:09:24 chs Exp $           */
+/*     $NetBSD: vm_machdep.c,v 1.74 2001/08/19 17:36:28 chs Exp $           */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -374,6 +374,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