Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Fix vmapbuf() to call uvm_km_valloc_perfe...
details: https://anonhg.NetBSD.org/src/rev/9933efa380d5
branches: trunk
changeset: 495617:9933efa380d5
user: jeffs <jeffs%NetBSD.org@localhost>
date: Tue Aug 01 22:45:05 2000 +0000
description:
Fix vmapbuf() to call uvm_km_valloc_perfer_wait() call, but trunc_page()
to the prefer arg so we free the correct page.
diffstat:
sys/arch/mips/mips/vm_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 42eb2e152026 -r 9933efa380d5 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Tue Aug 01 21:02:55 2000 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Tue Aug 01 22:45:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.69 2000/07/26 16:24:38 jeffs Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.70 2000/08/01 22:45:05 jeffs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.69 2000/07/26 16:24:38 jeffs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.70 2000/08/01 22:45:05 jeffs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -299,7 +299,8 @@
faddr = trunc_page((vaddr_t)bp->b_saveaddr = bp->b_data);
off = (vaddr_t)bp->b_data - faddr;
len = round_page(off + len);
- taddr = uvm_km_valloc_wait(phys_map, len);
+ taddr = uvm_km_valloc_prefer_wait(phys_map, len,
+ trunc_page((vaddr_t)bp->b_data));
bp->b_data = (caddr_t)(taddr + off);
len = atop(len);
while (len--) {
Home |
Main Index |
Thread Index |
Old Index