summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1998-12-21 13:03:46 +0000
committerDavid Leonard <d@cvs.openbsd.org>1998-12-21 13:03:46 +0000
commit21608e3435c3a03689040da68f7163b3c35fdcc0 (patch)
treeec32885db6957cee4384925b071dc78b2df41082 /lib
parent6fb232d619f8620a9ef688534f9399a7505dc03f (diff)
more spinlock
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/arch/alpha/_atomic_lock.c4
-rw-r--r--lib/libc_r/arch/m68k/_atomic_lock.c4
-rw-r--r--lib/libc_r/arch/mips/_atomic_lock.c4
-rw-r--r--lib/libc_r/arch/sparc/_atomic_lock.c8
-rw-r--r--lib/libpthread/arch/alpha/_atomic_lock.c4
-rw-r--r--lib/libpthread/arch/m68k/_atomic_lock.c4
-rw-r--r--lib/libpthread/arch/mips/_atomic_lock.c4
-rw-r--r--lib/libpthread/arch/sparc/_atomic_lock.c8
8 files changed, 20 insertions, 20 deletions
diff --git a/lib/libc_r/arch/alpha/_atomic_lock.c b/lib/libc_r/arch/alpha/_atomic_lock.c
index 75aace9532c..c496aee5002 100644
--- a/lib/libc_r/arch/alpha/_atomic_lock.c
+++ b/lib/libc_r/arch/alpha/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:36:59 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:43 d Exp $ */
/*
* Atomic lock for alpha
*/
@@ -35,7 +35,7 @@ _atomic_lock(volatile _spinlock_lock_t * lock)
}
int
-_atomic_is_locked(volatile register_t * lock)
+_atomic_is_locked(volatile _spinlock_lock_t * lock)
{
return (*lock != _SPINLOCK_UNLOCKED);
diff --git a/lib/libc_r/arch/m68k/_atomic_lock.c b/lib/libc_r/arch/m68k/_atomic_lock.c
index 9a59370c375..329fdb5ca37 100644
--- a/lib/libc_r/arch/m68k/_atomic_lock.c
+++ b/lib/libc_r/arch/m68k/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:36:59 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:44 d Exp $ */
/*
* Atomic lock for m68k
*/
@@ -28,7 +28,7 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
}
int
-_atomic_lock(volatile _spinlock_lock_t *lock)
+_atomic_is_locked(volatile _spinlock_lock_t *lock)
{
return (*lock != _SPINLOCK_UNLOCKED);
diff --git a/lib/libc_r/arch/mips/_atomic_lock.c b/lib/libc_r/arch/mips/_atomic_lock.c
index 6961a679069..6b9760a9e46 100644
--- a/lib/libc_r/arch/mips/_atomic_lock.c
+++ b/lib/libc_r/arch/mips/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:37:00 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:45 d Exp $ */
/*
* Atomic lock for mips
*/
@@ -52,7 +52,7 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
}
int
-_atomic_is_locked(volatile register_t *lock)
+_atomic_is_locked(volatile _spinlock_lock_t *lock)
{
#if __mips >= 2
diff --git a/lib/libc_r/arch/sparc/_atomic_lock.c b/lib/libc_r/arch/sparc/_atomic_lock.c
index 31636328f93..6415e25c912 100644
--- a/lib/libc_r/arch/sparc/_atomic_lock.c
+++ b/lib/libc_r/arch/sparc/_atomic_lock.c
@@ -1,18 +1,18 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:37:01 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:45 d Exp $ */
/*
* Atomic lock for sparc
*/
#include "spinlock.h"
-register_t
-_atomic_lock(volatile register_t * lock)
+int
+_atomic_lock(volatile _spinlock_lock_t * lock)
{
return _thread_slow_atomic_lock(lock);
}
int
-_atomic_is_locked(volatile register_t * lock)
+_atomic_is_locked(volatile _spinlock_lock_t * lock)
{
return _thread_slow_atomic_is_locked(lock);
diff --git a/lib/libpthread/arch/alpha/_atomic_lock.c b/lib/libpthread/arch/alpha/_atomic_lock.c
index 75aace9532c..c496aee5002 100644
--- a/lib/libpthread/arch/alpha/_atomic_lock.c
+++ b/lib/libpthread/arch/alpha/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:36:59 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:43 d Exp $ */
/*
* Atomic lock for alpha
*/
@@ -35,7 +35,7 @@ _atomic_lock(volatile _spinlock_lock_t * lock)
}
int
-_atomic_is_locked(volatile register_t * lock)
+_atomic_is_locked(volatile _spinlock_lock_t * lock)
{
return (*lock != _SPINLOCK_UNLOCKED);
diff --git a/lib/libpthread/arch/m68k/_atomic_lock.c b/lib/libpthread/arch/m68k/_atomic_lock.c
index 9a59370c375..329fdb5ca37 100644
--- a/lib/libpthread/arch/m68k/_atomic_lock.c
+++ b/lib/libpthread/arch/m68k/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:36:59 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:44 d Exp $ */
/*
* Atomic lock for m68k
*/
@@ -28,7 +28,7 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
}
int
-_atomic_lock(volatile _spinlock_lock_t *lock)
+_atomic_is_locked(volatile _spinlock_lock_t *lock)
{
return (*lock != _SPINLOCK_UNLOCKED);
diff --git a/lib/libpthread/arch/mips/_atomic_lock.c b/lib/libpthread/arch/mips/_atomic_lock.c
index 6961a679069..6b9760a9e46 100644
--- a/lib/libpthread/arch/mips/_atomic_lock.c
+++ b/lib/libpthread/arch/mips/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:37:00 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:45 d Exp $ */
/*
* Atomic lock for mips
*/
@@ -52,7 +52,7 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
}
int
-_atomic_is_locked(volatile register_t *lock)
+_atomic_is_locked(volatile _spinlock_lock_t *lock)
{
#if __mips >= 2
diff --git a/lib/libpthread/arch/sparc/_atomic_lock.c b/lib/libpthread/arch/sparc/_atomic_lock.c
index 31636328f93..6415e25c912 100644
--- a/lib/libpthread/arch/sparc/_atomic_lock.c
+++ b/lib/libpthread/arch/sparc/_atomic_lock.c
@@ -1,18 +1,18 @@
-/* $OpenBSD: _atomic_lock.c,v 1.3 1998/12/21 07:37:01 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:45 d Exp $ */
/*
* Atomic lock for sparc
*/
#include "spinlock.h"
-register_t
-_atomic_lock(volatile register_t * lock)
+int
+_atomic_lock(volatile _spinlock_lock_t * lock)
{
return _thread_slow_atomic_lock(lock);
}
int
-_atomic_is_locked(volatile register_t * lock)
+_atomic_is_locked(volatile _spinlock_lock_t * lock)
{
return _thread_slow_atomic_is_locked(lock);