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 Use new uvm_km_valloc_prefer_wait() in vm...
details: https://anonhg.NetBSD.org/src/rev/e9426ce3f404
branches: trunk
changeset: 495248:e9426ce3f404
user: jeffs <jeffs%NetBSD.org@localhost>
date: Mon Jul 24 20:16:29 2000 +0000
description:
Use new uvm_km_valloc_prefer_wait() in vmapbuf(). This lets the K2
mapping of b_data have the same virtual index, so the mapping does
not degenerate into uncached in pmap_enter().
diffstat:
sys/arch/mips/mips/vm_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5764e67950d5 -r e9426ce3f404 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Mon Jul 24 20:10:51 2000 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Mon Jul 24 20:16:29 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.67 2000/06/29 08:11:27 mrg Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.68 2000/07/24 20:16:29 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.67 2000/06/29 08:11:27 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.68 2000/07/24 20:16:29 jeffs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -299,7 +299,7 @@
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, (vaddr_t)bp->b_data);
bp->b_data = (caddr_t)(taddr + off);
len = atop(len);
while (len--) {
Home |
Main Index |
Thread Index |
Old Index