summaryrefslogtreecommitdiff
path: root/lib/libpthread/arch/sparc/_atomic_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/arch/sparc/_atomic_lock.c')
-rw-r--r--lib/libpthread/arch/sparc/_atomic_lock.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libpthread/arch/sparc/_atomic_lock.c b/lib/libpthread/arch/sparc/_atomic_lock.c
new file mode 100644
index 00000000000..35b50e3ada5
--- /dev/null
+++ b/lib/libpthread/arch/sparc/_atomic_lock.c
@@ -0,0 +1,10 @@
+/* $OpenBSD */
+/* atomic lock for sparc */
+
+#include "spinlock.h"
+
+register_t
+_atomic_lock(volatile register_t * lock)
+{
+ return _thread_slow_atomic_lock(lock);
+}