freebsd-dev/sys/conf
John Baldwin c6a37e8413 Divorce critical sections from spinlocks. Critical sections as denoted by
critical_enter() and critical_exit() are now solely a mechanism for
deferring kernel preemptions.  They no longer have any affect on
interrupts.  This means that standalone critical sections are now very
cheap as they are simply unlocked integer increments and decrements for the
common case.

Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter()
and spinlock_exit().  This KPI is responsible for providing whatever MD
guarantees are needed to ensure that a thread holding a spin lock won't
be preempted by any other code that will try to lock the same lock.  For
now all archs continue to block interrupts in a "spinlock section" as they
did formerly in all critical sections.  Note that I've also taken this
opportunity to push a few things into MD code rather than MI.  For example,
critical_fork_exit() no longer exists.  Instead, MD code ensures that new
threads have the correct state when they are created.  Also, we no longer
try to fixup the idlethreads for APs in MI code.  Instead, each arch sets
the initial curthread and adjusts the state of the idle thread it borrows
in order to perform the initial context switch.

This change is largely a big NOP, but the cleaner separation it provides
will allow for more efficient alternative locking schemes in other parts
of the kernel (bare critical sections rather than per-CPU spin mutexes
for per-CPU data for example).

Reviewed by:	grehan, cognet, arch@, others
Tested on:	i386, alpha, sparc64, powerpc, arm, possibly more
2005-04-04 21:53:56 +00:00
..
defines
files This is the much rumoured ATA mkIII update that I've been working on. 2005-03-30 12:03:40 +00:00
files.alpha Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
files.amd64 Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
files.arm Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
files.i386 Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
files.ia64 Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
files.pc98 Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
files.powerpc Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
files.sparc64 Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
kern.mk Since the question keeps coming up, explain why the -mno-sse etc switches 2005-03-31 22:53:58 +00:00
kern.post.mk Now that we have proper links, no need to fake up ones as part of 2005-04-03 04:33:42 +00:00
kern.pre.mk Don't generate major.c anymore. 2005-03-29 11:23:25 +00:00
kmod_syms.awk
kmod.mk Don't forget to create new-style links for module builds. 2005-04-03 04:56:05 +00:00
ldscript.alpha Have the linker provide the btext symbol when referenced. This is needed 2004-08-27 19:13:35 +00:00
ldscript.amd64 Provide the _start_ctors and _stop_ctors symbols. As on i386, the addresses 2004-05-29 01:09:00 +00:00
ldscript.arm Use the address provided in the conf file, instead of hardcode 0xc0000000. 2004-09-23 22:52:55 +00:00
ldscript.i386 Align the .ctors section correctly. 2003-12-03 07:40:03 +00:00
ldscript.ia64 Have the linker provide btext. It's used for profiling. 2004-08-25 07:43:28 +00:00
ldscript.powerpc
ldscript.sparc64
Makefile.alpha Update version number for latest config version bump 2005-04-01 22:56:10 +00:00
Makefile.amd64 Update version number for latest config version bump 2005-04-01 22:56:10 +00:00
Makefile.arm Update version number for latest config version bump 2005-04-01 22:56:10 +00:00
Makefile.i386 Update version number for latest config version bump 2005-04-01 22:56:10 +00:00
Makefile.ia64 Update version number for latest config version bump 2005-04-01 22:56:10 +00:00
Makefile.pc98 Now that we have proper links, no need to fake up ones as part of 2005-04-03 04:33:42 +00:00
Makefile.powerpc Update version number for latest config version bump 2005-04-01 22:56:10 +00:00
Makefile.sparc64 Update version number for latest config version bump 2005-04-01 22:56:10 +00:00
makeLINT.mk
makeLINT.sed
newvers.sh If USER of HOSTNAME is set to an empty value, use the fallback value. 2005-01-15 13:25:41 +00:00
NOTES atapicam is broken, so comment it out since it may take a while to fix it. 2005-03-31 03:21:21 +00:00
options - Move LOOKUP_SHARED from opt_global.h to opt_vfs.h so we don't have 2005-04-03 23:49:13 +00:00
options.alpha Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
options.amd64 Add support for Windows/x86-64 binaries to Project Evil. 2005-02-16 05:41:18 +00:00
options.arm Add a new option, ARM_CACHE_LOCK_ENABLE (I forgot it in my last commit). 2005-02-26 22:41:07 +00:00
options.i386 Bring back some of the ioctl junk that was removed in rev 1.59 as a 2005-03-17 01:20:49 +00:00
options.ia64 Catch up with the drive-by renaming of IA32 to COMPAT_IA32. It must 2004-08-16 18:54:23 +00:00
options.pc98 The bs and wdc drivers are gone. 2005-02-04 15:29:54 +00:00
options.powerpc Catch up with sparc64 OFWCONS_POLL_HZ change 2004-06-25 13:44:34 +00:00
options.sparc64 Better OFW console support on Sun Ultra2 machines. 2004-06-24 02:57:11 +00:00
systags.sh Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00