freebsd kernel with SKQ
Go to file
bde bc4334bd19 clock.c:
Quick fix for calling DELAY() for ddb input in some (atkbd-based)
console drivers.  ddb must not use any normal locks, but DELAY()
normally calls getit() which needs clock_lock.  One problem with using
normal locks in ddb is that deadlock is possible, but deadlock on
clock_lock is unlikely becaluse clock_lock is bogusly recursive,
apparently just to hide the problem of ddb using it.  The i8254 clock
hardware has mostly write-only registers so it is important for it to
use a lock that gives exclusive access.  (atkbd hardware is also
unfriendly to reentrant software but that problem is more local and
already solved.)  I mostly saw the symptoms of the bug caused by
unlocking in getit() running cpu_unpend().  cpu_unpend() should not
be called while in ddb and Debugger() calls for failing assertions
about this caused a breakpoint within ddb.

ddb must also not call getit() because ddb may be being used to step
through clock initialization code that has stopped or otherwise mangled
the clock.  If the clock is stopped, then getit() always returns the
same value and DELAY() takes forever if it trusts getit().

The quick fix is implement DELAY(n) as (n * timer_freq / 1000000)
inb(0x84)'s if ddb is active.

machdep.c:
Don't permit recursion on clock_lock.
2003-09-07 14:23:08 +00:00
bin Don't escape names in MLINKS: this won't work with bsd.man.mk,v 1.53. 2003-09-07 12:52:17 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r119743, 2003-09-04 18:06:16 +00:00
crypto
etc Replace the ttyd[0-3] entries with ttyu[0-3]. The former are the 2003-09-07 06:02:36 +00:00
games * Fix a duplicate "how how" 2003-08-31 23:05:39 +00:00
gnu Eliminate the need in uname(1) during install. 2003-09-07 13:38:07 +00:00
include Add small piece of code to support pthread_rwlock_timedrdlock and 2003-09-06 00:07:52 +00:00
kerberos5 Try a lot harder to get dependancies right. This involves some ugly 2003-07-27 16:49:10 +00:00
lib Add small piece of code to support pthread_rwlock_timedrdlock and 2003-09-06 00:07:52 +00:00
libexec Eliminate last three uses of varargs.h in the tree. These three files 2003-09-01 04:12:18 +00:00
release Trim the twe(4) device list; the twe(4) manual page is more up-to-date. 2003-09-06 20:03:09 +00:00
rescue Teach rescue about NOATM, NO_VINUM and NOINET6 2003-09-02 06:43:58 +00:00
sbin Replace a reference to non existant mount_ffs(8) by a reference to mount(8). 2003-09-07 14:11:02 +00:00
secure Explicitly add libz and libcrypto to LDADD for any ssh utilities missing 2003-08-19 07:45:03 +00:00
share - No need to create libfoo.so -> libfoo.so.X symlinks in /lib, 2003-09-07 14:15:40 +00:00
sys clock.c: 2003-09-07 14:23:08 +00:00
tools In case of zero span data supress the histogram plot. 2003-08-18 11:13:19 +00:00
usr.bin Use KERN_PROC_PROC instead of KERN_PROC_ALL when enumerating processes so 2003-09-07 09:13:44 +00:00
usr.sbin There is no need to #include <sgtty.h> 2003-09-04 01:33:43 +00:00
COPYRIGHT
MAINTAINERS I'll maintain dhclient from now on. 2003-08-01 17:54:11 +00:00
Makefile Cosmetics: folded BITGTS into TGTS. 2003-08-30 13:33:41 +00:00
Makefile.inc1 - No need to create libfoo.so -> libfoo.so.X symlinks in /lib, 2003-09-07 14:15:40 +00:00
README
UPDATING Remove deprecated files no longer neccesary as part of rc.d. Include 2003-08-29 13:25:08 +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