freebsd kernel with SKQ
Go to file
Attilio Rao b0b9dee5c9 - Fix a race in sched_switch() of sched_4bsd.
In the case of the thread being on a sleepqueue or a turnstile, the
  sched_lock was acquired (without the aid of the td_lock interface) and
  the td_lock was dropped. This was going to break locking rules on other
  threads willing to access to the thread (via the td_lock interface) and
  modify his flags (allowed as long as the container lock was different
  by the one used in sched_switch).
  In order to prevent this situation, while sched_lock is acquired there
  the td_lock gets blocked. [0]
- Merge the ULE's internal function thread_block_switch() into the global
  thread_lock_block() and make the former semantic as the default for
  thread_lock_block(). This means that thread_lock_block() will not
  disable interrupts when called (and consequently thread_unlock_block()
  will not re-enabled them when called). This should be done manually
  when necessary.
  Note, however, that ULE's thread_unblock_switch() is not reaped
  because it does reflect a difference in semantic due in ULE (the
  td_lock may not be necessarilly still blocked_lock when calling this).
  While asymmetric, it does describe a remarkable difference in semantic
  that is good to keep in mind.

[0] Reported by:	Kohji Okuno
			<okuno dot kohji at jp dot panasonic dot com>
Tested by:		Giovanni Trematerra
			<giovanni dot trematerra at gmail dot com>
MFC:			2 weeks
2010-01-23 15:54:21 +00:00
bin Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
cddl Apply OpenSolaris revision 8012 which brings our zpool to version 14, 2009-12-28 22:15:11 +00:00
contrib Update to 4.6. 2010-01-19 18:45:29 +00:00
crypto Add a missing $FreeBSD$ string. 2010-01-13 20:30:16 +00:00
etc Do not check for existence of symlink source for the link action. This 2010-01-23 11:42:31 +00:00
games Our standard "xterm" termcap entry supports colour, so this tip is redundant. 2010-01-11 21:17:49 +00:00
gnu Use the new PO_CXXFLAGS from r202807 to remove the '-ffunction-sections' 2010-01-22 14:09:15 +00:00
include Add gmountver, disk mount verification GEOM class. 2010-01-16 09:52:49 +00:00
kerberos5 Fix a typo. 2010-01-09 18:53:03 +00:00
lib Reapply r201145 to lib/libc/gen/sem.c 2010-01-23 12:48:46 +00:00
libexec Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
release Remove libulog from the bootstrap again. 2010-01-21 16:56:27 +00:00
rescue Remove libulog from the bootstrap again. 2010-01-21 16:56:27 +00:00
sbin Make mdconfig(8) WARNS=6 clean: 2010-01-22 08:51:58 +00:00
secure Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
share Document pthread_timedjoin_np. 2010-01-23 13:08:47 +00:00
sys - Fix a race in sched_switch() of sched_4bsd. 2010-01-23 15:54:21 +00:00
tools Update files to remove when MK_ZFS=no. 2010-01-16 20:42:50 +00:00
usr.bin - Collapase short and long options together; 2010-01-22 23:50:46 +00:00
usr.sbin - Add support for UPDATING remote fetching. 2010-01-22 23:32:10 +00:00
COPYRIGHT Happy New Year 2010! :-) 2009-12-31 10:00:37 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Removing pre-commit review on isp(4). It's time to let people have their 2009-12-30 14:41:02 +00:00
Makefile Back out the change to Makefile made in r202628. 2010-01-19 15:34:16 +00:00
Makefile.inc1 Remove libulog from the bootstrap again. 2010-01-21 16:56:27 +00:00
ObsoleteFiles.inc Move USD documents from /usr/share/doc/papers to to /usr/share/doc/usd. 2010-01-22 23:19:48 +00:00
README Flatten out vendor tree. 2010-01-15 12:01:25 +00:00
UPDATING Add wtmpcvt(1). 2010-01-14 20:58:45 +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 ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

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.

rescue		Build system for statically linked /rescue utilities.

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