aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-12-12 16:40:20 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-12-12 16:40:20 +0000
commit5057d21069ab21ce516ffde8ec216adfcb8a7add (patch)
treede85ea06d52979d294888029513b846c63876ca7 /sys
parent2b3d269b8b0ecc3acd6214776fdb28d34138885c (diff)
downloadsrc-5057d21069ab21ce516ffde8ec216adfcb8a7add.tar.gz
src-5057d21069ab21ce516ffde8ec216adfcb8a7add.zip
Add in symbols needed in the WITNESS_ENTER and WITNESS_EXIT macros in
i386/include/mutex.h.
Notes
Notes: svn path=/head/; revision=69919
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/genassym.c5
-rw-r--r--sys/i386/i386/genassym.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c
index fa1313c79539..0f6fdfdb3c7d 100644
--- a/sys/amd64/amd64/genassym.c
+++ b/sys/amd64/amd64/genassym.c
@@ -228,5 +228,10 @@ ASSYM(VM86_FRAMESIZE, sizeof(struct vm86frame));
ASSYM(MTX_LOCK, offsetof(struct mtx, mtx_lock));
ASSYM(MTX_RECURSE, offsetof(struct mtx, mtx_recurse));
ASSYM(MTX_SAVEINTR, offsetof(struct mtx, mtx_saveintr));
+#ifdef WITNESS
+ASSYM(MTX_DEBUG, offsetof(struct mtx, mtx_debug));
+ASSYM(MTXD_WITNESS, offsetof(struct mtx_debug, mtxd_witness));
+#endif
ASSYM(MTX_UNOWNED, MTX_UNOWNED);
+ASSYM(MTX_SPIN, MTX_SPIN);
diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c
index fa1313c79539..0f6fdfdb3c7d 100644
--- a/sys/i386/i386/genassym.c
+++ b/sys/i386/i386/genassym.c
@@ -228,5 +228,10 @@ ASSYM(VM86_FRAMESIZE, sizeof(struct vm86frame));
ASSYM(MTX_LOCK, offsetof(struct mtx, mtx_lock));
ASSYM(MTX_RECURSE, offsetof(struct mtx, mtx_recurse));
ASSYM(MTX_SAVEINTR, offsetof(struct mtx, mtx_saveintr));
+#ifdef WITNESS
+ASSYM(MTX_DEBUG, offsetof(struct mtx, mtx_debug));
+ASSYM(MTXD_WITNESS, offsetof(struct mtx_debug, mtxd_witness));
+#endif
ASSYM(MTX_UNOWNED, MTX_UNOWNED);
+ASSYM(MTX_SPIN, MTX_SPIN);