6283b7d01b
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. |
||
---|---|---|
.. | ||
_limits.h | ||
ansi.h | ||
asm.h | ||
atomic.h | ||
bootinfo.h | ||
clock.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
frame.h | ||
globaldata.h | ||
globals.h | ||
limits.h | ||
md_var.h | ||
mutex.h | ||
param.h | ||
pcpu.h | ||
ptrace.h | ||
resource.h | ||
setjmp.h | ||
sigframe.h | ||
types.h | ||
ucontext.h |