summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-03-06 16:59:42 +0000
committermiod <miod@openbsd.org>2011-03-06 16:59:42 +0000
commitdef4494596e07b97b3819f8f816d635ccdb01fc7 (patch)
tree152efcfea23a430bdeca5c1774bd794094f33cef
parentAdd an "rc_bg" variable that is undefined by default and allows to start (diff)
downloadwireguard-openbsd-def4494596e07b97b3819f8f816d635ccdb01fc7.tar.xz
wireguard-openbsd-def4494596e07b97b3819f8f816d635ccdb01fc7.zip
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
-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; \