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:
parent
32a48fa01c
commit
bd4635599d
@ -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)
|
||||
*--------------------------------------------------------------------------
|
||||
|
@ -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)
|
||||
*------------------------------------------------------------------------------
|
||||
|
@ -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)
|
||||
*------------------------------------------------------------------------------
|
||||
|
@ -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 */
|
||||
|
@ -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)
|
||||
*--------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user