freebsd-dev/sys/i386
jhb 5c1fadddce Fix mtx_legal2block. The only time that it is bad to block on a mutex is
if we hold a spin mutex, since we can trivially get into deadlocks if we
start switching out of processes that hold spinlocks.  Checking to see if
interrupts were disabled was a sort of cheap way of doing this since most
of the time interrupts were only disabled when holding a spin lock.  At
least on the i386.  To fix this properly, use a per-process counter
p_spinlocks that counts the number of spin locks currently held, and
instead of checking to see if interrupts are disabled in the witness code,
check to see if we hold any spin locks.  Since child processes always
start up with the sched lock magically held in fork_exit(), we initialize
p_spinlocks to 1 for child processes.  Note that proc0 doesn't go through
fork_exit(), so it starts with no spin locks held.

Consulting from:	cp
2001-03-09 07:24:17 +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 Spelling and capitalization fixes. 2001-03-07 04:58:38 +00:00
i386 Unrevert the pmap_map() changes. They weren't broken on x86. 2001-03-07 05:29:21 +00:00
ibcs2 Fix typo: seperate -> separate. 2001-02-06 11:21:58 +00:00
include Fix mtx_legal2block. The only time that it is bad to block on a mutex is 2001-03-09 07:24:17 +00:00
isa Grab the process lock while calling psignal and before calling psignal. 2001-03-07 03:37:06 +00:00
linux Grab the process lock while calling psignal and before calling psignal. 2001-03-07 03:37:06 +00:00
pci Free the memory we get from devclass_get_devices and device_get_children. 2001-02-08 20:44:49 +00:00
svr4 Grab the process lock while calling psignal and before calling psignal. 2001-03-07 03:37:06 +00:00
Makefile Update tags directive to reflect the new location of soft updates 2000-07-04 00:18:43 +00:00