diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-02-07 23:51:01 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-02-07 23:51:01 +0000 |
commit | 29536adc8571e7b1893281289f6bd0f4dbe63e65 (patch) | |
tree | 1d14b11016d1dcb5df04fefa240eeb2662b03851 /sys/arch/sparc | |
parent | 4d8f4532747289f5c958814713f22a4603db03c4 (diff) |
implement sparc atomic lock with LDSTUB
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/include/spinlock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/spinlock.h b/sys/arch/sparc/include/spinlock.h index 16e1f34312c..0a4519f2db9 100644 --- a/sys/arch/sparc/include/spinlock.h +++ b/sys/arch/sparc/include/spinlock.h @@ -1,10 +1,10 @@ -/* $OpenBSD: spinlock.h,v 1.1 1999/01/08 08:25:36 d Exp $ */ +/* $OpenBSD: spinlock.h,v 1.2 1999/02/07 23:50:59 d Exp $ */ #ifndef _MACHINE_SPINLOCK_H_ #define _MACHINE_SPINLOCK_H_ -#define _SPINLOCK_UNLOCKED (0) -#define _SPINLOCK_LOCKED (1) -typedef int _spinlock_lock_t; +#define _SPINLOCK_UNLOCKED (0x00) +#define _SPINLOCK_LOCKED (0xFF) +typedef unsigned char _spinlock_lock_t; #endif |