summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-04-26 05:48:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-04-26 05:48:20 +0000
commit36e448944b0b2563eedabe7250a2155262915c8d (patch)
tree7aad0603dde8309761d3ab1f0e1a1a311ade474a /sys/arch
parentc108a8fdc871c4428549ee6862f22b56f2eddc21 (diff)
cut down simple locks (so simple that they don't even lock) to the point
where there is almost nothing left to them, so that we can continue getting rid of them ok oga
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/m68k/include/lock.h4
-rw-r--r--sys/arch/sh/include/lock.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/m68k/include/lock.h b/sys/arch/m68k/include/lock.h
index 475236a26d4..2e7e04dce73 100644
--- a/sys/arch/m68k/include/lock.h
+++ b/sys/arch/m68k/include/lock.h
@@ -1,10 +1,12 @@
-/* $OpenBSD: lock.h,v 1.1 2007/05/01 18:56:30 miod Exp $ */
+/* $OpenBSD: lock.h,v 1.2 2010/04/26 05:48:19 deraadt Exp $ */
/* public domain */
#ifndef _M68K_LOCK_H_
#define _M68K_LOCK_H_
+#include <machine/atomic.h>
+
typedef volatile u_int __cpu_simple_lock_t;
#define __SIMPLELOCK_LOCKED 1
diff --git a/sys/arch/sh/include/lock.h b/sys/arch/sh/include/lock.h
index 10d433c8e8e..e228fabc292 100644
--- a/sys/arch/sh/include/lock.h
+++ b/sys/arch/sh/include/lock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lock.h,v 1.2 2008/06/26 05:42:12 ray Exp $ */
+/* $OpenBSD: lock.h,v 1.3 2010/04/26 05:48:19 deraadt Exp $ */
/* $NetBSD: lock.h,v 1.10 2006/01/03 01:29:46 uwe Exp $ */
/*-
@@ -37,6 +37,8 @@
#ifndef _SH_LOCK_H_
#define _SH_LOCK_H_
+#include <sh/atomic.h>
+
typedef volatile u_int8_t __cpu_simple_lock_t;
#define __SIMPLELOCK_LOCKED 0x80