diff options
author | jhb <jhb@FreeBSD.org> | 2001-03-28 02:40:47 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-03-28 02:40:47 +0000 |
commit | 4572ff9c78f9e673b960845742b5efce77d07348 (patch) | |
tree | 118249692a5e69c7cb4a44540b33e1ec40b0f35d /sys/ia64 | |
parent | fdbf402b8548ef52a4bc5f1d4f27038556bfbf93 (diff) | |
download | FreeBSD-src-4572ff9c78f9e673b960845742b5efce77d07348.zip FreeBSD-src-4572ff9c78f9e673b960845742b5efce77d07348.tar.gz |
- Switch from using save/disable/restore_intr to using critical_enter/exit
and change the u_int mtx_saveintr member of struct mtx to a critical_t
mtx_savecrit.
- On the alpha we no longer need a custom _get_spin_lock() macro to avoid
an extra PAL call, so remove it.
- Partially fix using mutexes with WITNESS in modules. Change all the
_mtx_{un,}lock_{spin,}_flags() macros to accept explicit file and line
parameters and rename them to use a prefix of two underscores. Inside
of kern_mutex.c, generate wrapper functions for
_mtx_{un,}lock_{spin,}_flags() (only using a prefix of one underscore)
that are called from modules. The macros mtx_{un,}lock_{spin,}_flags()
are mapped to the __mtx_* macros inside of the kernel to inline the
usual case of mutex operations and map to the internal _mtx_* functions
in the module case so that modules will use WITNESS and KTR logging if
the kernel is compiled with support for it.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/include/mutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/mutex.h b/sys/ia64/include/mutex.h index f325f2b..f32bacd 100644 --- a/sys/ia64/include/mutex.h +++ b/sys/ia64/include/mutex.h @@ -38,7 +38,7 @@ #ifdef _KERNEL -#define mtx_intr_enable(mutex) (mutex)->mtx_saveintr |= IA64_PSR_I +#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= IA64_PSR_I #endif /* _KERNEL */ |