freebsd kernel with SKQ
Go to file
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
bin Add and document the 'jid' keyword for the '-o' option. 2005-03-20 10:40:36 +00:00
contrib Correct a pair of buffer overflows in the telnet(1) command: 2005-03-28 14:45:12 +00:00
crypto File removed in update from OpenSSL 0.9.7d -> 0.9.7e. 2005-02-25 06:22:30 +00:00
etc Instead of leaving the current frequency setting at whatever the BIOS set 2005-04-03 21:45:20 +00:00
games He who receives ideas from me, receives instruction himself without 2005-03-22 07:41:22 +00:00
gnu Teach libstdc++ about frexpl() and ldexpl(). 2005-03-26 08:27:53 +00:00
include Add pthread_condattr_getclock, pthread_condattr_setclock. 2005-04-03 23:55:02 +00:00
kerberos5 Update Heimdal 0.6.1 -> 0.6.3. 2005-02-24 22:24:24 +00:00
lib make _files_getaddrinfo() re-entrant. 2005-04-04 19:45:27 +00:00
libexec When allocating TLS and DTV, make sure that any unused slots in the DTV 2005-03-30 08:28:26 +00:00
release MFen 1.30 -> 1.31 2005-04-03 17:41:21 +00:00
rescue Run "make obj" before "make build-tools" in the directories used for 2005-03-18 12:55:07 +00:00
sbin Remove debug from last commit 2005-04-03 16:35:58 +00:00
secure Update OpenSSL 0.9.7d -> 0.9.7e. 2005-02-25 06:04:12 +00:00
share Document that devclass_get_maxunit(9) returns one greater than the current 2005-04-04 15:37:59 +00:00
sys Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
tools Add missing test-rem.t. 2005-04-02 12:50:28 +00:00
usr.bin Include <string.h> and <strings.h> for various functions. 2005-04-04 21:19:48 +00:00
usr.sbin Allow one to specify a second parameter to the machine line. This 2005-04-01 22:54:22 +00:00
COPYRIGHT Complete 2005 transition. 2005-01-01 07:29:20 +00:00
MAINTAINERS Add myself as a maintainer of geom_shsec. 2005-03-13 15:30:01 +00:00
Makefile Repo-copy tools/regression/usr.bin/make to tools/build/make_check 2005-03-02 12:33:23 +00:00
Makefile.inc1 Fix AMD64 cross-builds when WITH_LIB32 is defined. 2005-03-27 19:35:09 +00:00
README
UPDATING Remove important entry being X that's 9 months old 2005-03-03 08:44:33 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html