summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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