summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/mutex.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-10-20 22:44:06 +0000
committerjhb <jhb@FreeBSD.org>2000-10-20 22:44:06 +0000
commitab67e1548e508ee6855267abfe9c626ce21c1454 (patch)
tree4b220ffab975313d7511aec65fddb4cba96496ef /sys/powerpc/include/mutex.h
parent060a190f062c5c6e4af9be7d4e590e2631b61858 (diff)
downloadFreeBSD-src-ab67e1548e508ee6855267abfe9c626ce21c1454.zip
FreeBSD-src-ab67e1548e508ee6855267abfe9c626ce21c1454.tar.gz
Define the mtx_legal2block() macro used in the witness code that managed
to get lost during the MI mutex conversion. Reported by: Steve Kargl <sgk@troutmask.apl.washington.edu>
Diffstat (limited to 'sys/powerpc/include/mutex.h')
-rw-r--r--sys/powerpc/include/mutex.h3
1 files changed, 3 insertions, 0 deletions
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)
*--------------------------------------------------------------------------
OpenPOWER on IntegriCloud