From ab67e1548e508ee6855267abfe9c626ce21c1454 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 20 Oct 2000 22:44:06 +0000 Subject: Define the mtx_legal2block() macro used in the witness code that managed to get lost during the MI mutex conversion. Reported by: Steve Kargl --- sys/powerpc/include/mutex.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/powerpc/include/mutex.h') diff --git a/sys/powerpc/include/mutex.h b/sys/powerpc/include/mutex.h index 75c64cf..72d3b7b 100644 --- a/sys/powerpc/include/mutex.h +++ b/sys/powerpc/include/mutex.h @@ -60,6 +60,9 @@ extern char STR_SIEN[]; #define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr \ != ALPHA_PSL_IPL_HIGH, STR_SIEN) +#define mtx_legal2block() \ + ((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) == ALPHA_PSL_IPL_HIGH) + /* * Assembly macros (for internal use only) *-------------------------------------------------------------------------- -- cgit v1.1