Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 pmap_kremove the pages before uvm_km_free'i...



details:   https://anonhg.NetBSD.org/src/rev/b4aef1042179
branches:  trunk
changeset: 544210:b4aef1042179
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 14 18:47:53 2003 +0000

description:
pmap_kremove the pages before uvm_km_free'ing them. Thanks jason!

diffstat:

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

diffs (34 lines):

diff -r b925ff2440d8 -r b4aef1042179 sys/arch/x86/x86/bus_space.c
--- a/sys/arch/x86/x86/bus_space.c      Fri Mar 14 18:43:52 2003 +0000
+++ b/sys/arch/x86/x86/bus_space.c      Fri Mar 14 18:47:53 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_space.c,v 1.1 2003/03/12 00:09:52 thorpej Exp $    */
+/*     $NetBSD: bus_space.c,v 1.2 2003/03/14 18:47:53 christos Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.1 2003/03/12 00:09:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.2 2003/03/14 18:47:53 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -372,6 +372,7 @@
                        bpa = pmap_extract(pmap_kernel(), va) + (bsh & PGOFSET);
 #endif
 
+                       pmap_kremove(va, endva - va);
                        /*
                         * Free the kernel virtual mapping.
                         */
@@ -422,6 +423,7 @@
                (void) pmap_extract(pmap_kernel(), va, &bpa);
                bpa += (bsh & PGOFSET);
 
+               pmap_kremove(va, endva - va);
                /*
                 * Free the kernel virtual mapping.
                 */



Home | Main Index | Thread Index | Old Index