diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2004-12-30 23:31:03 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2004-12-30 23:31:03 +0000 |
commit | 949f4073b0f44ffe039059bd40f5aa22931f35f6 (patch) | |
tree | 4120002856907fab39e775b6823317998f01825b /sys/arch | |
parent | 20ba835288d5716d3dbf69b9b201dcc10ab6b94e (diff) |
Include types and defines for items used in these inlined functions.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/include/lock.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/arm/include/lock.h b/sys/arch/arm/include/lock.h index f949eb8d3b9..5167c57e27f 100644 --- a/sys/arch/arm/include/lock.h +++ b/sys/arch/arm/include/lock.h @@ -1,4 +1,4 @@ -/* $OpenBSD: lock.h,v 1.1 2004/02/01 05:09:49 drahn Exp $ */ +/* $OpenBSD: lock.h,v 1.2 2004/12/30 23:31:02 drahn Exp $ */ /* $NetBSD: lock.h,v 1.3 2002/10/07 23:19:49 bjh21 Exp $ */ /*- @@ -49,6 +49,11 @@ #ifndef _ARM_LOCK_H_ #define _ARM_LOCK_H_ +typedef __volatile int __cpu_simple_lock_t; + +#define __SIMPLELOCK_LOCKED 1 +#define __SIMPLELOCK_UNLOCKED 0 + static __inline int __swp(int __val, __volatile int *__ptr) { |