summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorassar <assar@cvs.openbsd.org>2001-07-15 12:23:56 +0000
committerassar <assar@cvs.openbsd.org>2001-07-15 12:23:56 +0000
commitb72ffa47960a4c39c8a906fd71310112140f748f (patch)
treea92e5f3c878d8b95c91bffa26426620ab4d7abbd /sys/arch
parent6e7eceb42355237a3982c85ff1e2e374728c15e3 (diff)
add macros for spinlockinit, spinlockmgr to build for MULTIPROCESSOR
or LOCKDEBUG
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/pmap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index 05b40b2b80d..24178c1351f 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.41 2001/06/08 08:08:52 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.42 2001/07/15 12:23:55 assar Exp $ */
/* $NetBSD: pmap.c,v 1.84 2000/02/21 02:01:24 chs Exp $ */
/*
@@ -266,6 +266,11 @@
*/
#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
+#ifdef __OpenBSD__
+#define spinlockinit(lock, name, flags) lockinit(lock, 0, name, 0, flags)
+#define spinlockmgr(lock, flags, slock) lockmgr(lock, flags, slock, curproc)
+#endif
+
struct lock pmap_main_lock;
simple_lock_data_t pvalloc_lock;
simple_lock_data_t pmaps_lock;