Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2o Don't mix BUS_DMASYNC_PREREAD and BUS_DMASYNC_PO...
details: https://anonhg.NetBSD.org/src/rev/eb68f795b644
branches: trunk
changeset: 752200:eb68f795b644
user: asau <asau%NetBSD.org@localhost>
date: Fri Feb 19 12:36:15 2010 +0000
description:
Don't mix BUS_DMASYNC_PREREAD and BUS_DMASYNC_POSTWRITE.
Suggested by <bouyer>, fixes PR kern/42662
diffstat:
sys/dev/i2o/iop.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r df472002c48f -r eb68f795b644 sys/dev/i2o/iop.c
--- a/sys/dev/i2o/iop.c Fri Feb 19 11:15:23 2010 +0000
+++ b/sys/dev/i2o/iop.c Fri Feb 19 12:36:15 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iop.c,v 1.77 2009/10/21 21:12:05 rmind Exp $ */
+/* $NetBSD: iop.c,v 1.78 2010/02/19 12:36:15 asau 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.77 2009/10/21 21:12:05 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.78 2010/02/19 12:36:15 asau Exp $");
#include "iop.h"
@@ -928,7 +928,7 @@
BUS_DMASYNC_PREWRITE);
memset(st, 0, sizeof(*st));
bus_dmamap_sync(sc->sc_dmat, sc->sc_scr_dmamap, 0, sizeof(*st),
- BUS_DMASYNC_PREREAD|BUS_DMASYNC_POSTWRITE);
+ BUS_DMASYNC_POSTWRITE);
if ((rv = iop_post(sc, (u_int32_t *)&mf)) != 0)
return (rv);
@@ -993,7 +993,7 @@
BUS_DMASYNC_PREWRITE);
*sw = 0;
bus_dmamap_sync(sc->sc_dmat, sc->sc_scr_dmamap, 0, sizeof(*sw),
- BUS_DMASYNC_PREREAD|BUS_DMASYNC_POSTWRITE);
+ BUS_DMASYNC_POSTWRITE);
if ((rv = iop_post(sc, mb)) != 0)
return (rv);
Home |
Main Index |
Thread Index |
Old Index