summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-05-14 20:38:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-05-14 20:38:01 +0000
commit0d614b6af11e9dadea6b33f9766b03b9f388342b (patch)
tree998eb5b5c79295b12e605cb981c2ffaddc6dc5c0 /sys/arch/mvmeppc
parent85da1a0dbbfe4907eb39ec6b99e28f62e70cb493 (diff)
Correctly coalesce buffers in _bus_dmamap_load_buffer().
Diffstat (limited to 'sys/arch/mvmeppc')
-rw-r--r--sys/arch/mvmeppc/mvmeppc/bus_dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvmeppc/mvmeppc/bus_dma.c b/sys/arch/mvmeppc/mvmeppc/bus_dma.c
index 01418675113..4f770fd03c0 100644
--- a/sys/arch/mvmeppc/mvmeppc/bus_dma.c
+++ b/sys/arch/mvmeppc/mvmeppc/bus_dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus_dma.c,v 1.14 2004/05/08 20:12:23 miod Exp $ */
+/* $OpenBSD: bus_dma.c,v 1.15 2004/05/14 20:38:00 miod Exp $ */
/* $NetBSD: bus_dma.c,v 1.2 2001/06/10 02:31:25 briggs Exp $ */
/*-
@@ -204,7 +204,7 @@ _bus_dmamap_load_buffer(t, map, buf, buflen, p, flags, lastaddrp, segp, first)
map->_dm_maxsegsz &&
(map->_dm_boundary == 0 ||
(map->dm_segs[seg].ds_addr & bmask) ==
- (curaddr & bmask)))
+ (PHYS_TO_PCI_MEM(curaddr) & bmask)))
map->dm_segs[seg].ds_len += sgsize;
else {
if (++seg >= map->_dm_segcnt)