summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-03-06 16:59:43 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-03-06 16:59:43 +0000
commit71b6b31d13fe18fcff85edfba624919db491b189 (patch)
tree733256f5466ce30659c764c4ab683347ed844484 /sys
parent6b182f2815fe18c634c9c1de0f3f5a67c166e4d0 (diff)
Make sure MEMORYBARRIER(SYNC_REG) performs a read/write bus_space_barrier,
instead of a read barrier only, as it is used in read-modify-write cycles. ok mjacob
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/isp_openbsd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/isp_openbsd.h b/sys/dev/ic/isp_openbsd.h
index 268c5e36015..a6d627c7af9 100644
--- a/sys/dev/ic/isp_openbsd.h
+++ b/sys/dev/ic/isp_openbsd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp_openbsd.h,v 1.33 2010/06/26 23:24:44 guenther Exp $ */
+/* $OpenBSD: isp_openbsd.h,v 1.34 2011/03/06 16:59:42 miod Exp $ */
/*
* OpenBSD Specific definitions for the QLogic ISP Host Adapter
*/
@@ -170,7 +170,7 @@ case SYNC_SFORCPU: \
case SYNC_REG: \
bus_space_barrier(isp->isp_bus_tag, \
isp->isp_bus_handle, offset, size, \
- BUS_SPACE_BARRIER_READ); \
+ BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE); \
break; \
default: \
break; \