diff options
author | jhb <jhb@FreeBSD.org> | 2000-11-15 19:45:10 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-11-15 19:45:10 +0000 |
commit | a1bbb80e56509c4874c58d53fa35fce34a9c90c9 (patch) | |
tree | d8794526f0a102608a85ebb18905705f0b4718ba /sys/powerpc | |
parent | 4b3e3264c701b8386027335c7428b02b92941ac7 (diff) | |
download | FreeBSD-src-a1bbb80e56509c4874c58d53fa35fce34a9c90c9.zip FreeBSD-src-a1bbb80e56509c4874c58d53fa35fce34a9c90c9.tar.gz |
Fix all the interrupt enabled/disabled assertions which were backwards.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/mutex.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/powerpc/include/mutex.h b/sys/powerpc/include/mutex.h index 72d3b7b..5c37f54 100644 --- a/sys/powerpc/include/mutex.h +++ b/sys/powerpc/include/mutex.h @@ -42,9 +42,9 @@ #ifdef MUTEX_DEBUG #ifdef _KERN_MUTEX_C_ -char STR_IEN[] = "ps & IPL != IPL_HIGH"; +char STR_IEN[] = "ps & IPL == IPL_0"; char STR_IDIS[] = "ps & IPL == IPL_HIGH"; -char STR_SIEN[] = "mpp->mtx_saveintr != IPL_HIGH"; +char STR_SIEN[] = "mpp->mtx_saveintr == IPL_0"; #else /* _KERN_MUTEX_C_ */ extern char STR_IEN[]; extern char STR_IDIS[]; @@ -54,14 +54,14 @@ extern char STR_SIEN[]; #endif /* MUTEX_DEBUG */ #define ASS_IEN MPASS2((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) \ - == ALPHA_PSL_IPL_HIGH, STR_IEN) + == ALPHA_PSL_IPL_0, STR_IEN) #define ASS_IDIS MPASS2((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) \ - != ALPHA_PSL_IPL_HIGH, STR_IDIS) + == ALPHA_PSL_IPL_HIGH, STR_IDIS) #define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr \ - != ALPHA_PSL_IPL_HIGH, STR_SIEN) + == ALPHA_PSL_IPL_0, STR_SIEN) #define mtx_legal2block() \ - ((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) == ALPHA_PSL_IPL_HIGH) + ((alpha_pal_rdps() & ALPHA_PSL_IPL_MASK) == ALPHA_PSL_IPL_0) /* * Assembly macros (for internal use only) |