summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-06-05 17:15:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-06-05 17:15:23 +0000
commit9de4911e1642a4fda6b603c3fef77d70ffc02f16 (patch)
treeed1cc90a8a5c91b5d24474c19e8e71886d4cda40 /sys/arch/hppa64
parent01544c1bd4ba0512f1ddf686dc9ba865f51f5cbc (diff)
Use phys_map, not kernel_map in v{,un}mapbuf. ok mickey
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r--sys/arch/hppa64/hppa64/vm_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa64/hppa64/vm_machdep.c b/sys/arch/hppa64/hppa64/vm_machdep.c
index 722ca373f86..5529dc094eb 100644
--- a/sys/arch/hppa64/hppa64/vm_machdep.c
+++ b/sys/arch/hppa64/hppa64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.5 2007/05/27 20:59:25 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.6 2007/06/05 17:15:22 miod Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -217,7 +217,7 @@ vmapbuf(bp, len)
* so that we can get all benefits of PMAP_PREFER.
* - art@
*/
- kva = uvm_km_valloc_prefer_wait(kernel_map, size, uva);
+ kva = uvm_km_valloc_prefer_wait(phys_map, size, uva);
fdcache(pm->pm_space, uva, size);
bp->b_data = (caddr_t)(kva + off);
while (size > 0) {
@@ -251,7 +251,7 @@ vunmapbuf(bp, len)
addr = trunc_page((vaddr_t)bp->b_data);
off = (vaddr_t)bp->b_data - addr;
len = round_page(off + len);
- uvm_km_free_wakeup(kernel_map, addr, len);
+ uvm_km_free_wakeup(phys_map, addr, len);
bp->b_data = bp->b_saveaddr;
bp->b_saveaddr = NULL;
}