summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/powerpc/_atomic_lock.c
diff options
context:
space:
mode:
authorrahnds <rahnds@openbsd.org>1998-12-22 05:47:17 +0000
committerrahnds <rahnds@openbsd.org>1998-12-22 05:47:17 +0000
commitd0f4c22d8e12b6af5a328c6da15826c94d4ba984 (patch)
tree9af6a37de9caf994ac94c4735dceed8ba1d3248a /lib/libpthread/arch/powerpc/_atomic_lock.c
parenttypo; freebsd (diff)
downloadwireguard-openbsd-d0f4c22d8e12b6af5a328c6da15826c94d4ba984.tar.xz
wireguard-openbsd-d0f4c22d8e12b6af5a328c6da15826c94d4ba984.zip
Correct a thinko I had when writing the comment for this code.
Diffstat (limited to 'lib/libpthread/arch/powerpc/_atomic_lock.c')
-rw-r--r--lib/libpthread/arch/powerpc/_atomic_lock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/arch/powerpc/_atomic_lock.c b/lib/libpthread/arch/powerpc/_atomic_lock.c
index ab1a5321763..5318ae2cc78 100644
--- a/lib/libpthread/arch/powerpc/_atomic_lock.c
+++ b/lib/libpthread/arch/powerpc/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 1998/12/21 07:22:26 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 1998/12/22 05:47:17 rahnds Exp $ */
/*
* Atomic lock for powerpc
*/
@@ -24,9 +24,9 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
* Side note. to prevent two processes from accessing
* the same address with the lwarx in one instrution
* and the stwcx in another process, the current powerpc
- * kernel uses a lwarx instruction without the corresponding
- * stwcx which effectively causes any reservation of a
- * process to be removed. if a context switch occurs
+ * kernel uses a stwcx instruction without the corresponding
+ * lwarx which causes any reservation of a process
+ * to be removed. if a context switch occurs
* between the two accesses the store will not occur
* and the condition code will cause it to loop. If on
* a dual processor machine, the reserve will cause