summaryrefslogtreecommitdiffstats
path: root/sys/sys/mplock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/mplock.h')
-rw-r--r--sys/sys/mplock.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/sys/mplock.h b/sys/sys/mplock.h
index cd816a8fc2d..3d17ede906a 100644
--- a/sys/sys/mplock.h
+++ b/sys/sys/mplock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mplock.h,v 1.6 2005/05/27 20:46:59 niklas Exp $ */
+/* $OpenBSD: mplock.h,v 1.7 2005/05/29 03:20:42 deraadt Exp $ */
/*
* Copyright (c) 2004 Niklas Hallqvist. All rights reserved.
@@ -45,6 +45,14 @@ static __inline int __mp_release_all(struct __mp_lock *);
static __inline void __mp_acquire_count(struct __mp_lock *, int);
static __inline int __mp_lock_held(struct __mp_lock *);
+/*
+ * XXX Simplelocks macros used at "trusted" places.
+ */
+#define SIMPLELOCK __mp_lock
+#define SIMPLE_LOCK_INIT __mp_lock_init
+#define SIMPLE_LOCK __mp_lock
+#define SIMPLE_UNLOCK __mp_unlock
+
static __inline void
__mp_lock_init(struct __mp_lock *lock)
{