summaryrefslogtreecommitdiffstats
path: root/sys/amd64
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/amd64
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/amd64')
-rw-r--r--sys/amd64/include/mutex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h
index 0e58108..2f16de3 100644
--- a/sys/amd64/include/mutex.h
+++ b/sys/amd64/include/mutex.h
@@ -67,6 +67,8 @@ extern char STR_SIEN[];
*------------------------------------------------------------------------------
*/
+#ifdef _KERN_MUTEX_C_
+
#define _V(x) __STRING(x)
#if 0
@@ -248,6 +250,10 @@ extern char STR_SIEN[];
#endif /* I386_CPU */
+#undef _V
+
+#endif /* _KERN_MUTEX_C_ */
+
#endif /* _KERNEL */
#else /* !LOCORE */
OpenPOWER on IntegriCloud