From 71b6b31d13fe18fcff85edfba624919db491b189 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 6 Mar 2011 16:59:43 +0000 Subject: 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 --- sys/dev/ic/isp_openbsd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; \ -- cgit v1.2.3