summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-02-22 15:45:49 +0000
committerjhb <jhb@FreeBSD.org>2001-02-22 15:45:49 +0000
commit41a6853d24dc7bdba9567ff11c55dd9d9fec86ea (patch)
tree919efa9c050d8679b7f11ac954617325c46cecbb
parented7d3539ba9a161ab191beed2d1e4e38859570c8 (diff)
downloadFreeBSD-src-41a6853d24dc7bdba9567ff11c55dd9d9fec86ea.zip
FreeBSD-src-41a6853d24dc7bdba9567ff11c55dd9d9fec86ea.tar.gz
GC unused and now obsolete assertion macros.
-rw-r--r--sys/alpha/include/mutex.h10
-rw-r--r--sys/amd64/include/mutex.h8
-rw-r--r--sys/i386/include/mutex.h8
-rw-r--r--sys/powerpc/include/mutex.h10
4 files changed, 0 insertions, 36 deletions
diff --git a/sys/alpha/include/mutex.h b/sys/alpha/include/mutex.h
index 2c1a302..9b04128 100644
--- a/sys/alpha/include/mutex.h
+++ b/sys/alpha/include/mutex.h
@@ -36,16 +36,6 @@
#ifdef _KERNEL
-/*
- * Debugging
- */
-#define ASS_IEN MPASS2((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) \
- == ALPHA_PSL_IPL_0, "ps & IPL == IPL_0")
-#define ASS_IDIS MPASS2((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) \
- == ALPHA_PSL_IPL_HIGH, "ps & IPL == IPL_HIGH")
-#define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr \
- == ALPHA_PSL_IPL_0, "mpp->mtx_saveintr == IPL_0")
-
#define mtx_legal2block() \
((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) == ALPHA_PSL_IPL_0)
#define mtx_intr_enable(mutex) (mutex)->mtx_saveintr = ALPHA_PSL_IPL_0
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h
index f0bbadb..a5f88de 100644
--- a/sys/amd64/include/mutex.h
+++ b/sys/amd64/include/mutex.h
@@ -40,14 +40,6 @@
/* Global locks */
extern struct mtx clock_lock;
-/*
- * Debugging
- */
-#define ASS_IEN MPASS2(read_eflags() & PSL_I, "fl & PSL_I")
-#define ASS_IDIS MPASS2((read_eflags() & PSL_I) == 0, "!(fl & PSL_I)")
-#define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr & PSL_I, \
- "mpp->mtx_saveintr & PSL_I")
-
#define mtx_legal2block() (read_eflags() & PSL_I)
#define mtx_intr_enable(mutex) (mutex)->mtx_saveintr |= PSL_I
diff --git a/sys/i386/include/mutex.h b/sys/i386/include/mutex.h
index f0bbadb..a5f88de 100644
--- a/sys/i386/include/mutex.h
+++ b/sys/i386/include/mutex.h
@@ -40,14 +40,6 @@
/* Global locks */
extern struct mtx clock_lock;
-/*
- * Debugging
- */
-#define ASS_IEN MPASS2(read_eflags() & PSL_I, "fl & PSL_I")
-#define ASS_IDIS MPASS2((read_eflags() & PSL_I) == 0, "!(fl & PSL_I)")
-#define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr & PSL_I, \
- "mpp->mtx_saveintr & PSL_I")
-
#define mtx_legal2block() (read_eflags() & PSL_I)
#define mtx_intr_enable(mutex) (mutex)->mtx_saveintr |= PSL_I
diff --git a/sys/powerpc/include/mutex.h b/sys/powerpc/include/mutex.h
index 2c1a302..9b04128 100644
--- a/sys/powerpc/include/mutex.h
+++ b/sys/powerpc/include/mutex.h
@@ -36,16 +36,6 @@
#ifdef _KERNEL
-/*
- * Debugging
- */
-#define ASS_IEN MPASS2((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) \
- == ALPHA_PSL_IPL_0, "ps & IPL == IPL_0")
-#define ASS_IDIS MPASS2((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) \
- == ALPHA_PSL_IPL_HIGH, "ps & IPL == IPL_HIGH")
-#define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr \
- == ALPHA_PSL_IPL_0, "mpp->mtx_saveintr == IPL_0")
-
#define mtx_legal2block() \
((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) == ALPHA_PSL_IPL_0)
#define mtx_intr_enable(mutex) (mutex)->mtx_saveintr = ALPHA_PSL_IPL_0
OpenPOWER on IntegriCloud