summaryrefslogtreecommitdiffstats
path: root/sys/sys/mutex.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2007-11-19 23:36:47 +0000
committerattilio <attilio@FreeBSD.org>2007-11-19 23:36:47 +0000
commit0e8f2ba6baa43a0010f7d36e884aa4a40923558f (patch)
tree87de9142f2591b3b15008fea53ddbb9826c9e8c3 /sys/sys/mutex.h
parentf2dddc3de3989e9a0ff47303d100eb4f9f071031 (diff)
downloadFreeBSD-src-0e8f2ba6baa43a0010f7d36e884aa4a40923558f.zip
FreeBSD-src-0e8f2ba6baa43a0010f7d36e884aa4a40923558f.tar.gz
Unify assertion flags for all the main primitives using the LA_* underlying
family of macros. This will allow to use unified flags for assertions with the generic locking primitive class.
Diffstat (limited to 'sys/sys/mutex.h')
-rw-r--r--sys/sys/mutex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h
index eb16e68..85efb83 100644
--- a/sys/sys/mutex.h
+++ b/sys/sys/mutex.h
@@ -421,10 +421,10 @@ struct mtx_args {
* _mtx_assert() must build.
*/
#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
-#define MA_OWNED 0x01
-#define MA_NOTOWNED 0x02
-#define MA_RECURSED 0x04
-#define MA_NOTRECURSED 0x08
+#define MA_OWNED LA_XLOCKED
+#define MA_NOTOWNED LA_UNLOCKED
+#define MA_RECURSED LA_RECURSED
+#define MA_NOTRECURSED LA_NOTRECURSED
#endif
#ifdef INVARIANTS
OpenPOWER on IntegriCloud