Xref __insn_barrier(3) and mb(9) with each other.

This commit is contained in:
jruoho 2011-01-02 07:14:02 +00:00
parent 600906f486
commit 70a8aa1e92
2 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: __insn_barrier.3,v 1.1 2010/12/17 07:10:38 jruoho Exp $
.\" $NetBSD: __insn_barrier.3,v 1.2 2011/01/02 07:14:02 jruoho Exp $
.\"
.\" Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi>
.\" All rights reserved.
@ -24,7 +24,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd December 17, 2010
.Dd January 2, 2011
.Dt __INSN_BARRIER 3
.Os
.Sh NAME
@ -50,7 +50,8 @@ may be necessary in some corner cases to prevent the compiler
from misoptimizing.
.Sh SEE ALSO
.Xr gcc 1 ,
.Xr cdefs 3
.Xr cdefs 3 ,
.Xr mb 9
.Rs
.%A Paul E. McKenney
.%T Memory Barriers: a Hardware View for Software Hackers

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mb.9,v 1.5 2008/04/30 13:10:58 martin Exp $
.\" $NetBSD: mb.9,v 1.6 2011/01/02 07:14:02 jruoho Exp $
.\"
.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd April 8, 2007
.Dd January 2, 2011
.Dt MB 9
.Os
.Sh NAME
@ -90,13 +90,11 @@ interfaces should be used.
.Sh FUNCTIONS
.Bl -tag -width abcd
.It Fn mb_memory ""
.Pp
Issue a full memory barrier, ordering all memory accesses.
Causes all loads and stores preceding the call to
.Fn mb_memory
to complete before further memory accesses can be made.
.It Fn mb_read ""
.Pp
Issue a read memory barrier, ordering all loads from memory.
Causes all loads preceding the call to
.Fn mb_read
@ -104,7 +102,6 @@ to complete before further loads can be made.
Stores may be reordered ahead of or behind a call to
.Fn mb_read .
.It Fn mb_write ""
.Pp
Issue a write memory barrier, ordering all stores to memory.
Causes all stores preceding the call to
.Fn mb_write
@ -113,6 +110,7 @@ Loads may be reordered ahead of or behind a call to
.Fn mb_write .
.El
.Sh SEE ALSO
.Xr __insn_barrier 3 ,
.Xr bus_dma 9 ,
.Xr bus_space 9 ,
.Xr mutex 9 ,