in vunmapbuf(), call pmap_remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
This commit is contained in:
parent
f6a81a1ac7
commit
be706f969f
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: vm_machdep.c,v 1.80 2001/06/02 18:09:16 chs Exp $ */
|
/* $NetBSD: vm_machdep.c,v 1.81 2001/08/04 04:28:49 chs Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 University of Utah.
|
* Copyright (c) 1988 University of Utah.
|
||||||
@ -45,7 +45,7 @@
|
|||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.80 2001/06/02 18:09:16 chs Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.81 2001/08/04 04:28:49 chs Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -331,6 +331,7 @@ vunmapbuf(bp, len)
|
|||||||
addr = trunc_page((vaddr_t)bp->b_data);
|
addr = trunc_page((vaddr_t)bp->b_data);
|
||||||
off = (vaddr_t)bp->b_data - addr;
|
off = (vaddr_t)bp->b_data - addr;
|
||||||
len = round_page(off + len);
|
len = round_page(off + len);
|
||||||
|
pmap_remove(pmap_kernel(), addr, addr + len);
|
||||||
uvm_km_free_wakeup(phys_map, addr, len);
|
uvm_km_free_wakeup(phys_map, addr, len);
|
||||||
bp->b_data = bp->b_saveaddr;
|
bp->b_data = bp->b_saveaddr;
|
||||||
bp->b_saveaddr = NULL;
|
bp->b_saveaddr = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user