aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-10-20 22:44:06 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-10-20 22:44:06 +0000
commitbd4635599d9e56eb71d6d6ce002e141b6e1f3ec8 (patch)
treefaf45331154d04620036d28e1d082d3686b71a70 /sys/alpha
parent32a48fa01c0fffad3b6a71cf85748a24c6349c03 (diff)
Notes
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/mutex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/alpha/include/mutex.h b/sys/alpha/include/mutex.h
index 75c64cf3f85a..72d3b7b73401 100644
--- a/sys/alpha/include/mutex.h
+++ b/sys/alpha/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)
*--------------------------------------------------------------------------