diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c index fa1313c7953..0f6fdfdb3c7 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 fa1313c7953..0f6fdfdb3c7 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);