summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2001-01-21 22:34:43 +0000
committerjasone <jasone@FreeBSD.org>2001-01-21 22:34:43 +0000
commitec55088093012f2db666d7599cae4123dd085f2c (patch)
treed64bdd091fc1c34cba613fcfbfadc782ea4b2487 /sys/powerpc
parent1ef4c9883a65101fd59ee3b98eaf136cf34d7bd9 (diff)
downloadFreeBSD-src-ec55088093012f2db666d7599cae4123dd085f2c.zip
FreeBSD-src-ec55088093012f2db666d7599cae4123dd085f2c.tar.gz
Move most of sys/mutex.h into kern/kern_mutex.c, thereby making the mutex
inline functions non-inlined. Hide parts of the mutex implementation that should not be exposed. Make sure that WITNESS code is not executed during boot until the mutexes are fully initialized by SI_SUB_MUTEX (the original motivation for this commit). Submitted by: peter
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/mutex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/powerpc/include/mutex.h b/sys/powerpc/include/mutex.h
index 5c37f54..40717b0 100644
--- a/sys/powerpc/include/mutex.h
+++ b/sys/powerpc/include/mutex.h
@@ -68,6 +68,8 @@ extern char STR_SIEN[];
*--------------------------------------------------------------------------
*/
+#ifdef _KERN_MUTEX_C_
+
#define _V(x) __STRING(x)
/*
@@ -84,6 +86,10 @@ extern char STR_SIEN[];
} \
} while (0)
+#undef _V
+
+#endif /* _KERN_MUTEX_C_ */
+
#endif /* _KERNEL */
#else /* !LOCORE */
OpenPOWER on IntegriCloud