diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-19 20:26:55 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-19 20:26:55 +0000 |
commit | 65c55c5116129102480a23e0b6a2dec31c54e69b (patch) | |
tree | 70690a01c8aea64dac12ce257d3a2deb6ada88a3 /sys/arch | |
parent | ec0cd072e33631cd57cac617087eff4a10a713fa (diff) |
Allocate bus_dma memory from kernel_map, not kmem_map.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/mips64/busdma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/busdma.c b/sys/arch/mips64/mips64/busdma.c index 1c6ddc10060..e71c7a7affe 100644 --- a/sys/arch/mips64/mips64/busdma.c +++ b/sys/arch/mips64/mips64/busdma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: busdma.c,v 1.9 2006/05/27 00:29:55 krw Exp $ */ +/* $OpenBSD: busdma.c,v 1.10 2006/06/19 20:26:54 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -483,7 +483,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); @@ -526,7 +526,7 @@ _dmamem_unmap(t, kva, size) #endif size = round_page(size); - uvm_km_free(kmem_map, (vaddr_t)kva, size); + uvm_km_free(kernel_map, (vaddr_t)kva, size); } /* |