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>
This commit is contained in:
John Baldwin 2000-10-20 22:44:06 +00:00
parent 32a48fa01c
commit bd4635599d
5 changed files with 12 additions and 0 deletions

View File

@ -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)
*--------------------------------------------------------------------------

View File

@ -60,6 +60,8 @@ extern char STR_SIEN[];
#define ASS_IDIS MPASS2((read_eflags() & PSL_I) == 0, STR_IDIS)
#define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr & PSL_I, STR_SIEN)
#define mtx_legal2block() (read_eflags() & PSL_I)
/*
* Assembly macros (for internal use only)
*------------------------------------------------------------------------------

View File

@ -60,6 +60,8 @@ extern char STR_SIEN[];
#define ASS_IDIS MPASS2((read_eflags() & PSL_I) == 0, STR_IDIS)
#define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr & PSL_I, STR_SIEN)
#define mtx_legal2block() (read_eflags() & PSL_I)
/*
* Assembly macros (for internal use only)
*------------------------------------------------------------------------------

View File

@ -59,6 +59,8 @@ extern char STR_SIEN[];
#define ASS_IDIS MPASS2(!(save_intr() & IA64_PSR_I), STR_IDIS)
#define ASS_SIEN(mpp) MPASS2((mpp)->mtx_saveintr & IA64_PSR_I), STR_SIEN)
#define mtx_legal2block() ((save_intr() & IA64_PSL_I)
#endif /* _KERNEL */
#else /* !LOCORE */

View File

@ -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)
*--------------------------------------------------------------------------