summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/mvmeppc/mvmeppc/bus_dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mvmeppc/mvmeppc/bus_dma.c b/sys/arch/mvmeppc/mvmeppc/bus_dma.c
index a06e36a4d55..5f4d75355df 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.12 2003/06/02 07:07:25 deraadt Exp $ */
+/* $OpenBSD: bus_dma.c,v 1.13 2004/01/29 20:26:48 miod Exp $ */
/* $NetBSD: bus_dma.c,v 1.2 2001/06/10 02:31:25 briggs Exp $ */
/*-
@@ -421,7 +421,7 @@ _bus_dmamap_sync(t, map, offset, len, op)
case BUS_DMASYNC_PREWRITE:
case BUS_DMASYNC_PREREAD:
for (i = map->dm_nsegs; i--; )
- invdcache((void *)map->dm_segs[i].ds_addr,
+ invdcache((void *)PCI_MEM_TO_PHYS(map->dm_segs[i].ds_addr),
len);
break;
}
@@ -579,7 +579,7 @@ _bus_dmamem_mmap(t, segs, nsegs, off, prot, flags)
continue;
}
- return (PCI_MEM_TO_PHYS(segs[i].ds_addr) + off);
+ return (powerpc_btop(PCI_MEM_TO_PHYS(segs[i].ds_addr) + off));
}
/* Page not found. */