From 771cd4d45afd115c066de4b2682205453eac6929 Mon Sep 17 00:00:00 2001 From: David Leonard Date: Fri, 18 Dec 1998 05:59:19 +0000 Subject: add md _atomic_is_locked; clean --- lib/libc_r/arch/sparc/_atomic_lock.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lib/libc_r/arch/sparc') diff --git a/lib/libc_r/arch/sparc/_atomic_lock.c b/lib/libc_r/arch/sparc/_atomic_lock.c index 35b50e3ada5..530c86b4805 100644 --- a/lib/libc_r/arch/sparc/_atomic_lock.c +++ b/lib/libc_r/arch/sparc/_atomic_lock.c @@ -1,5 +1,7 @@ -/* $OpenBSD */ -/* atomic lock for sparc */ +/* $OpenBSD: _atomic_lock.c,v 1.2 1998/12/18 05:59:18 d Exp $ */ +/* + * Atomic lock for sparc + */ #include "spinlock.h" @@ -8,3 +10,10 @@ _atomic_lock(volatile register_t * lock) { return _thread_slow_atomic_lock(lock); } + +int +_atomic_is_locked(volatile register_t * lock) +{ + + return *lock; +} -- cgit v1.2.3