1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00
freebsd/sys/i386
Bosko Milekic 08812b3925 Implement MTX_RECURSE flag for mtx_init().
All calls to mtx_init() for mutexes that recurse must now include
the MTX_RECURSE bit in the flag argument variable. This change is in
preparation for an upcoming (further) mutex API cleanup.
The witness code will call panic() if a lock is found to recurse but
the MTX_RECURSE bit was not set during the lock's initialization.

The old MTX_RECURSE "state" bit (in mtx_lock) has been renamed to
MTX_RECURSED, which is more appropriate given its meaning.

The following locks have been made "recursive," thus far:
eventhandler, Giant, callout, sched_lock, possibly some others declared
in the architecture-specific code, all of the network card driver locks
in pci/, as well as some other locks in dev/ stuff that I've found to
be recursive.

Reviewed by: jhb
2001-01-19 01:59:14 +00:00
..
acpica FreeBSD-specific OSD (operating system dependant) modules for the Intel 2000-10-28 06:56:15 +00:00
apm select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
bios select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
conf Change NSWAPDEV to something else than the default value. 2001-01-16 10:48:58 +00:00
i386 Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
ibcs2 - Change the allproc_lock to use a macro, ALLPROC_LOCK(how), instead 2000-12-13 00:17:05 +00:00
include Protect p_stat and p_oncpu with sched_lock in forward_signal(). 2001-01-18 08:19:25 +00:00
isa Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
linux The Linuxulator needs sysvipc to work. 2001-01-14 18:16:01 +00:00
pci Remove declaration of airq variable from outer block. There were two 2001-01-12 07:49:29 +00:00
svr4 Don't use p->p_sigstk.ss_flags to keep state of whether the 2000-11-30 05:23:49 +00:00
Makefile Update tags directive to reflect the new location of soft updates 2000-07-04 00:18:43 +00:00