From d716b994dcf32acdd1f2ab79273a44bb21e9c0cb Mon Sep 17 00:00:00 2001 From: Attilio Rao Date: Mon, 19 Nov 2007 23:36:47 +0000 Subject: [PATCH] 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. --- sys/sys/mutex.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index eb16e689126..85efb838485 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