From 949f4073b0f44ffe039059bd40f5aa22931f35f6 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 30 Dec 2004 23:31:03 +0000 Subject: Include types and defines for items used in these inlined functions. --- sys/arch/arm/include/lock.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/arch/arm') 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) { -- cgit v1.2.3