summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-02-18 14:26:25 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-02-18 14:26:25 +0000
commit63d6aeed6830d09333ea10dc0310cfb725b1d420 (patch)
tree98ceee1d4bb51954781585739ff26104cbe5305a /sys/arch/macppc
parent827a2d2db8883c0ab8ee709b3c79943e4084d8d0 (diff)
change the dma memory allocation to use kernel_map, not kmem_map.
suggestion by art.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/macppc/dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/dma.c b/sys/arch/macppc/macppc/dma.c
index 33356e6602b..cbaecb8fb99 100644
--- a/sys/arch/macppc/macppc/dma.c
+++ b/sys/arch/macppc/macppc/dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dma.c,v 1.11 2002/01/03 07:14:50 drahn Exp $ */
+/* $OpenBSD: dma.c,v 1.12 2002/02/18 14:26:24 drahn Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -491,7 +491,7 @@ _dmamem_map(t, segs, nsegs, size, kvap, flags)
int curseg;
size = round_page(size);
- va = uvm_km_valloc(kmem_map, size);
+ va = uvm_km_valloc(kernel_map, size);
if (va == 0)
return (ENOMEM);
@@ -530,7 +530,7 @@ _dmamem_unmap(t, kva, size)
#endif
size = round_page(size);
- uvm_km_free(kmem_map, (vm_offset_t)kva, size);
+ uvm_km_free(kernel_map, (vm_offset_t)kva, size);
}
/*