diff options
| author | bouyer <bouyer@NetBSD.org> | 2010-02-21 14:16:47 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2010-02-21 14:16:47 +0000 |
| commit | 80f97b6e051c0e1afe5a9dff86c013e26475be4f (patch) | |
| tree | 99950ccc53db0fee619206ef219d4c07071cb5b7 /sys/dev | |
| parent | 03c7f48412cdf71c5f52e2486b07fbfe305f0f1a (diff) | |
Fix bus_dmamap_sync(): it should be a BUS_DMASYNC_POSTWRITE after
writing to DMA memory.
Found by code inspection.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/i2o/iop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/i2o/iop.c b/sys/dev/i2o/iop.c index 0c530aef87e..50662a8ab82 100644 --- a/sys/dev/i2o/iop.c +++ b/sys/dev/i2o/iop.c @@ -1,4 +1,4 @@ -/* $NetBSD: iop.c,v 1.78 2010/02/19 12:36:15 asau Exp $ */ +/* $NetBSD: iop.c,v 1.79 2010/02/21 14:16:47 bouyer Exp $ */ /*- * Copyright (c) 2000, 2001, 2002, 2007 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.78 2010/02/19 12:36:15 asau Exp $"); +__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.79 2010/02/21 14:16:47 bouyer Exp $"); #include "iop.h" @@ -1538,7 +1538,7 @@ iop_reset(struct iop_softc *sc) BUS_DMASYNC_PREWRITE); *sw = htole32(0); bus_dmamap_sync(sc->sc_dmat, sc->sc_scr_dmamap, 0, sizeof(*sw), - BUS_DMASYNC_PREWRITE|BUS_DMASYNC_PREREAD); + BUS_DMASYNC_POSTWRITE); if ((rv = iop_post(sc, (u_int32_t *)&mf))) return (rv); |
