diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-22 15:43:42 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-22 15:43:42 +0000 |
commit | ed7d3539ba9a161ab191beed2d1e4e38859570c8 (patch) | |
tree | 5a3b065eb96cfa8ea3c39e421305806b488215de | |
parent | 1fcc4482e82d35fa8ffef0099e01dc9bb0b07e36 (diff) | |
download | FreeBSD-src-ed7d3539ba9a161ab191beed2d1e4e38859570c8.zip FreeBSD-src-ed7d3539ba9a161ab191beed2d1e4e38859570c8.tar.gz |
- Axe the now unused ASS_* assertions for interrupt status.
- Use ia64_get_psr() instead of save_intr() in mtx_legal2block().
-rw-r--r-- | sys/ia64/include/mutex.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/ia64/include/mutex.h b/sys/ia64/include/mutex.h index e4b82df..809a56e 100644 --- a/sys/ia64/include/mutex.h +++ b/sys/ia64/include/mutex.h @@ -38,16 +38,7 @@ #ifdef _KERNEL -/* - * Debugging - */ -#ifdef MUTEX_DEBUG -#define ASS_IEN MPASS2((save_intr() & IA64_PSR_I), "psr.i") -#define ASS_IDIS MPASS2(!(save_intr() & IA64_PSR_I), "!psr.i") -#define ASS_SIEN(mpp) MPASS2(((mpp)->mtx_saveintr & IA64_PSR_I), \ - "mpp->mtx_saveintr & IA64_PSR_I") - -#define mtx_legal2block() (save_intr() & IA64_PSR_I) +#define mtx_legal2block() (ia64_get_psr() & IA64_PSR_I) #define mtx_intr_enable(mutex) (mutex)->mtx_saveintr |= IA64_PSR_I #endif /* _KERNEL */ |