diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-29 20:26:49 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-29 20:26:49 +0000 |
commit | 41a7f54644b1d6d264981e2bd030a6e7a2ae56e2 (patch) | |
tree | 366ee4a34eb1ca0c677d13437a285d80b36556bd /sys | |
parent | b81164c673d7ecc70c623719ed288b104052267b (diff) |
In bus_dmamap_sync(), be sure to flush a host pa.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mvmeppc/mvmeppc/bus_dma.c | 6 |
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. */ |