7e1f6dfe9d
- The MD functions critical_enter/exit are renamed to start with a cpu_ prefix. - MI wrapper functions critical_enter/exit maintain a per-thread nesting count and a per-thread critical section saved state set when entering a critical section while at nesting level 0 and restored when exiting to nesting level 0. This moves the saved state out of spin mutexes so that interlocking spin mutexes works properly. - Most low-level MD code that used critical_enter/exit now use cpu_critical_enter/exit. MI code such as device drivers and spin mutexes use the MI wrappers. Note that since the MI wrappers store the state in the current thread, they do not have any return values or arguments. - mtx_intr_enable() is replaced with a constant CRITICAL_FORK which is assigned to curthread->td_savecrit during fork_exit(). Tested on: i386, alpha |
||
---|---|---|
.. | ||
_inttypes.h | ||
_limits.h | ||
ansi.h | ||
asm.h | ||
atomic.h | ||
bat.h | ||
bootinfo.h | ||
bus.h | ||
clock.h | ||
cpu.h | ||
cpufunc.h | ||
db_machdep.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
fpu.h | ||
frame.h | ||
intr.h | ||
ipl.h | ||
limits.h | ||
md_var.h | ||
mutex.h | ||
openpicreg.h | ||
param.h | ||
pcb.h | ||
pcpu.h | ||
pio.h | ||
pmap.h | ||
powerpc.h | ||
proc.h | ||
psl.h | ||
pte.h | ||
ptrace.h | ||
reg.h | ||
reloc.h | ||
resource.h | ||
setjmp.h | ||
sigframe.h | ||
signal.h | ||
smp.h | ||
stdarg.h | ||
trap.h | ||
types.h | ||
ucontext.h | ||
varargs.h | ||
vmparam.h |