summaryrefslogtreecommitdiff
path: root/lib/libc_r/arch/i386/_atomic_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/arch/i386/_atomic_lock.c')
-rw-r--r--lib/libc_r/arch/i386/_atomic_lock.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc_r/arch/i386/_atomic_lock.c b/lib/libc_r/arch/i386/_atomic_lock.c
index 609dc42fb01..8ddcb33068e 100644
--- a/lib/libc_r/arch/i386/_atomic_lock.c
+++ b/lib/libc_r/arch/i386/_atomic_lock.c
@@ -1,6 +1,6 @@
-/* $OpenBSD: _atomic_lock.c,v 1.1 1998/11/20 11:15:36 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.2 1998/12/18 05:59:17 d Exp $ */
/*
- * Atomic lock aquire for i386.
+ * Atomic lock for i386
*/
#include "spinlock.h"
@@ -24,3 +24,10 @@ _atomic_lock(volatile register_t *lock)
*/
return old;
}
+
+int
+_atomic_is_locked(volatile register_t *lock)
+{
+
+ return *lock;
+}