freebsd-src/sys/i386/include
John Baldwin 192846463a Rework the witness code to work with sx locks as well as mutexes.
- Introduce lock classes and lock objects.  Each lock class specifies a
  name and set of flags (or properties) shared by all locks of a given
  type.  Currently there are three lock classes: spin mutexes, sleep
  mutexes, and sx locks.  A lock object specifies properties of an
  additional lock along with a lock name and all of the extra stuff needed
  to make witness work with a given lock.  This abstract lock stuff is
  defined in sys/lock.h.  The lockmgr constants, types, and prototypes have
  been moved to sys/lockmgr.h.  For temporary backwards compatability,
  sys/lock.h includes sys/lockmgr.h.
- Replace proc->p_spinlocks with a per-CPU list, PCPU(spinlocks), of spin
  locks held.  By making this per-cpu, we do not have to jump through
  magic hoops to deal with sched_lock changing ownership during context
  switches.
- Replace proc->p_heldmtx, formerly a list of held sleep mutexes, with
  proc->p_sleeplocks, which is a list of held sleep locks including sleep
  mutexes and sx locks.
- Add helper macros for logging lock events via the KTR_LOCK KTR logging
  level so that the log messages are consistent.
- Add some new flags that can be passed to mtx_init():
  - MTX_NOWITNESS - specifies that this lock should be ignored by witness.
    This is used for the mutex that blocks a sx lock for example.
  - MTX_QUIET - this is not new, but you can pass this to mtx_init() now
    and no events will be logged for this lock, so that one doesn't have
    to change all the individual mtx_lock/unlock() operations.
- All lock objects maintain an initialized flag.  Use this flag to export
  a mtx_initialized() macro that can be safely called from drivers.  Also,
  we on longer walk the all_mtx list if MUTEX_DEBUG is defined as witness
  performs the corresponding checks using the initialized flag.
- The lock order reversal messages have been improved to output slightly
  more accurate file and line numbers.
2001-03-28 09:03:24 +00:00
..
pc Add PCI BIOS function codes for IRQ routing fetch and route. 2000-10-19 08:02:46 +00:00
_limits.h Our SHRT_MIN definition was actually 4 bits too big. 2000-11-04 21:01:44 +00:00
ansi.h Fixed disordering in previous commit. "Fixed" a null comment in previous 2001-02-17 03:57:38 +00:00
apic.h Remove the leading underscore from all symbols defined in x86 asm 2001-02-25 06:29:04 +00:00
apicreg.h Remove the leading underscore from all symbols defined in x86 asm 2001-02-25 06:29:04 +00:00
apm_bios.h
apm_segments.h
asc_ioctl.h
asm.h
asmacros.h Always use the ELF naming after the demise of asnames.h. 2001-02-25 07:23:03 +00:00
atomic.h RIP <machine/lock.h>. 2001-02-11 10:44:09 +00:00
bootinfo.h
bus_at386.h version 1.7 made some changes to correct problems identifed by compiling 2001-03-02 05:33:53 +00:00
bus_dma.h version 1.7 made some changes to correct problems identifed by compiling 2001-03-02 05:33:53 +00:00
bus_memio.h
bus_pc98.h Merged from sys/i386/include/bus_at386.h revision 1.13. 2001-03-02 08:31:38 +00:00
bus_pio_ind.h
bus_pio.h
bus.h
cdk.h
clock.h Move DELAY() from <machine/clock.h> to <sys/systm.h> 2000-10-15 09:51:49 +00:00
comstats.h
cpu.h Changed the aston() family to operate on a specified process instead of 2001-02-19 04:15:59 +00:00
cpufunc.h - Add the new critical_t type used to save state inside of critical 2001-03-28 02:31:54 +00:00
cputypes.h
cronyx.h
db_machdep.h
dvcfg.h
elf.h
endian.h Spell what was originally "unsigned long" as "unsigned long" again, 2001-03-06 11:35:04 +00:00
exec.h
float.h
floatingpoint.h
frame.h Interrupt frames don't include the saved cpl anymore since cpl is dead. 2000-10-06 01:57:28 +00:00
globaldata.h Rework the witness code to work with sx locks as well as mutexes. 2001-03-28 09:03:24 +00:00
globals.h Implement optimized PCPU accessors. These are necessary to support a 2001-01-21 03:11:03 +00:00
gsc.h
i4b_cause.h update to i4b version 0.95.04 2000-10-09 13:18:17 +00:00
i4b_debug.h Add a debug flag bit for a new driver. 2000-10-18 08:39:24 +00:00
i4b_ioctl.h Add experimental support for Eicon.Diehl DIVA 2.0 and 2.02 ISA PnP cards. 2001-01-26 13:12:56 +00:00
i4b_isppp.h update to i4b version 0.95.04 2000-10-09 13:18:17 +00:00
i4b_rbch_ioctl.h
i4b_tel_ioctl.h update to i4b version 0.95.04 2000-10-09 13:18:17 +00:00
i4b_trace.h update to i4b version 0.95.04 2000-10-09 13:18:17 +00:00
ieeefp.h
if_wl_wavelan.h Fix typo: compatability -> compatibility. 2001-02-06 12:05:58 +00:00
iic.h
in_cksum.h These files are mpsafe. 2000-11-25 03:01:05 +00:00
intrcnt.h Export intrnames and intrcnt as sysctls (hw.nintr, hw.intrnames and 2001-03-23 03:45:17 +00:00
ioctl_bt848.h Fix typo in comments 2000-10-31 14:30:29 +00:00
ioctl_ctx.h
ioctl_fd.h
ioctl_meteor.h
ipl.h - Overhaul the software interrupt code to use interrupt threads for each 2000-10-25 05:19:40 +00:00
legacyvar.h
limits.h Our SHRT_MIN definition was actually 4 bits too big. 2000-11-04 21:01:44 +00:00
md_var.h Remove the last of the MD netisr code. It is now all MI. Remove 2000-12-05 00:36:00 +00:00
mpapic.h
mptable.h Rework the witness code to work with sx locks as well as mutexes. 2001-03-28 09:03:24 +00:00
mtpr.h
mutex.h - Switch from using save/disable/restore_intr to using critical_enter/exit 2001-03-28 02:40:47 +00:00
nexusvar.h
npx.h Declare or #define per-cpu globals in <machine/globals.h> in all cases. 2000-10-27 08:30:59 +00:00
param.h Fix CMSG and ALIGN macro usage. 2000-11-08 16:59:25 +00:00
pcaudioio.h
pcb_ext.h Activate USER_LDT by default. The new thread libraries are going to 2001-02-23 01:25:02 +00:00
pcb.h Activate USER_LDT by default. The new thread libraries are going to 2001-02-23 01:25:02 +00:00
pci_cfgreg.h Add types and prototypes. 2000-10-16 19:49:30 +00:00
pcpu.h Rework the witness code to work with sx locks as well as mutexes. 2001-03-28 09:03:24 +00:00
pcvt_ioctl.h
pecoff_machdep.h Add PECOFF (WIN32 Execution file format) support. 2000-12-20 12:51:08 +00:00
perfmon.h
physio_proc.h Use queue macros. 2001-01-24 00:01:42 +00:00
pmap.h Increase NKPT from 17 to 30. This fixes the 4GB ram boot panic on both 2000-11-30 01:53:02 +00:00
proc.h
profile.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
psl.h
ptrace.h
reg.h
reloc.h
resource.h
segments.h Declare or #define per-cpu globals in <machine/globals.h> in all cases. 2000-10-27 08:30:59 +00:00
setjmp.h Work around a bug by adding struct tags. gcc-2.95 apparently gets the 2000-10-06 11:53:32 +00:00
sigframe.h
signal.h Make MINSIGSTKSZ machine dependent, and have the sigaltstack 2000-11-09 08:25:48 +00:00
smb.h
smp.h Defer assignment of low level interrupt handlers for PCI interrupts 2001-01-28 01:07:54 +00:00
smptests.h Zap last remaining references to (and a use use of) of simple_locks. 2001-01-31 04:29:52 +00:00
speaker.h
specialreg.h
spigot.h
stdarg.h
sysarch.h
trap.h Removed all traces of T_ASTFLT (except for gaps where it was). It became 2001-02-19 15:47:38 +00:00
tss.h Declare or #define per-cpu globals in <machine/globals.h> in all cases. 2000-10-27 08:30:59 +00:00
types.h - Add the new critical_t type used to save state inside of critical 2001-03-28 02:31:54 +00:00
uc_device.h
ucontext.h
varargs.h
vm86.h
vmparam.h
wtio.h