diff --git a/common/lib/libc/atomic/atomic_ops.3 b/common/lib/libc/atomic/atomic_ops.3 index b1ab2f441def..81174c7f0206 100644 --- a/common/lib/libc/atomic/atomic_ops.3 +++ b/common/lib/libc/atomic/atomic_ops.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: atomic_ops.3,v 1.2 2007/11/28 16:55:07 ad Exp $ +.\" $NetBSD: atomic_ops.3,v 1.3 2007/12/02 18:57:56 wiz Exp $ .\" .\" Copyright (c) 2007 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -55,7 +55,7 @@ There are 7 classes of atomic memory operations available: These functions perform atomic addition. .It Xr atomic_and 3 These functions perform atomic logical -.Sq and . +.Dq and . .It Xr atomic_cas 3 These functions perform atomic compare-and-swap. .It Xr atomic_dec 3 @@ -64,7 +64,7 @@ These functions perform atomic decrement. These functions perform atomic increment. .It Xr atomic_or 3 These functions perform atomic logical -.Sq or . +.Dq or . .It Xr atomic_swap 3 These functions perform atomic swap. .El diff --git a/common/lib/libc/atomic/membar_ops.3 b/common/lib/libc/atomic/membar_ops.3 index 50d72f1d6d06..a7e16fe629d2 100644 --- a/common/lib/libc/atomic/membar_ops.3 +++ b/common/lib/libc/atomic/membar_ops.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: membar_ops.3,v 1.2 2007/11/28 16:55:12 ad Exp $ +.\" $NetBSD: membar_ops.3,v 1.3 2007/12/02 18:57:57 wiz Exp $ .\" .\" Copyright (c) 2007 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -41,7 +41,7 @@ .Nm membar_ops , .Nm membar_enter , .Nm membar_exit , -.Nm membar_producer, +.Nm membar_producer , .Nm membar_consumer , .Nm membar_sync .Nd memory access barrier operations @@ -69,15 +69,15 @@ relaxed load and store order. .Pp .Bl -tag -width "membar_producer()" .It Fn membar_enter -All loads and stores preceeding the memory barrier will complete and +All loads and stores preceding the memory barrier will complete and reach global visibility before any stores after the memory barrier reach global visibility .Pq RW-W . .Fn membar_enter -is typically used in code that implements locking primitivies to ensure +is typically used in code that implements locking primitives to ensure that a lock protects its data. .It Fn membar_exit -All stores preceeding the memory barrier will reach global visibility +All stores preceding the memory barrier will reach global visibility before any loads and stores after the memory barrier will complete and reach global visibility .Pq W-RW . @@ -85,15 +85,15 @@ reach global visibility is typically used in code that implements locking primitives when a lock is released. .It Fn membar_producer -All stores preceeding the memory barrier will reach global visibility +All stores preceding the memory barrier will reach global visibility before any stores after the memory barrier reach global visibility .Pq W-W . .It Fn membar_consumer -All loads preceeding the memory barrier will complete before any loads +All loads preceding the memory barrier will complete before any loads after the memory barrier complete .Pq R-R . .It Fn membar_sync -All loads and stores preceeding the memory barrier will complete and +All loads and stores preceding the memory barrier will complete and reach global visibility before any loads and stores after the memory barrier complete and reach global visibility .Pq RW-RW .