diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-10-20 22:44:06 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-10-20 22:44:06 +0000 |
| commit | bd4635599d9e56eb71d6d6ce002e141b6e1f3ec8 (patch) | |
| tree | faf45331154d04620036d28e1d082d3686b71a70 /sys/amd64/include | |
| parent | 32a48fa01c0fffad3b6a71cf85748a24c6349c03 (diff) | |
Notes
Diffstat (limited to 'sys/amd64/include')
| -rw-r--r-- | sys/amd64/include/mutex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/mutex.h b/sys/amd64/include/mutex.h index 1a8a7b65e7f6..0c4a9eb26ad6 100644 --- a/sys/amd64/include/mutex.h +++ b/sys/amd64/include/mutex.h @@ -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) *------------------------------------------------------------------------------ |
