Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2o Fix bus_dmamap_sync(): it should be a BUS_DMASYN...



details:   https://anonhg.NetBSD.org/src/rev/b8326f912faa
branches:  trunk
changeset: 752270:b8326f912faa
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Feb 21 14:16:47 2010 +0000

description:
Fix bus_dmamap_sync(): it should be a BUS_DMASYNC_POSTWRITE after
writing to DMA memory.
Found by code inspection.

diffstat:

 sys/dev/i2o/iop.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e799112d118d -r b8326f912faa sys/dev/i2o/iop.c
--- a/sys/dev/i2o/iop.c Sun Feb 21 13:55:58 2010 +0000
+++ b/sys/dev/i2o/iop.c Sun Feb 21 14:16:47 2010 +0000
@@ -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 @@
            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);



Home | Main Index | Thread Index | Old Index