freebsd kernel with SKQ
Go to file
jhb 887f061ed2 MFC 278474,278476,280279:
Expand the bitcount*() API and use it to implement CPU_COUNT for cpusets.

278474:
Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and
use this to implement CPU_COUNT() to count the number of CPUs in a cpuset.

278476:
Use __builtin_popcountl() instead of __builtin_popcount().

280279:
Expand the bitcount* API to support 64-bit integers, plain ints and longs
and create a "hidden" API that can be used in other system headers without
adding namespace pollution.
- If the POPCNT instruction is enabled at compile time, use
  __builtin_popcount*() to implement __bitcount*(), otherwise fall back
  to software implementations.
- Use the existing bitcount16() and bitcount32() from <sys/systm.h> to
  implement the non-POPCNT __bitcount16() and __bitcount32() in
  <sys/types.h>.
- For the non-POPCNT __bitcount64(), use a similar SWAR method on 64-bit
  systems.  For 32-bit systems, use two __bitcount32() operations on the
  two halves.
- Use __bitcount32() to provide a __bitcount() that operates on plain ints.
- Use either __bitcount32() or __bitcount64() to provide a
  __bitcountl() that operates on longs.
- Add public bitcount*() wrappers for __bitcount*() for use in the kernel
  in <sys/libkern.h>.
- Use __bitcountl() instead of __builtin_popcountl() in BIT_COUNT().
2015-04-14 20:05:26 +00:00
bin MFC r280357: 2015-04-06 14:45:40 +00:00
cddl MFC r279862: 2015-04-12 21:45:34 +00:00
contrib Improve patch for SA-15:04.igmp to solve a potential buffer overflow. 2015-04-07 20:20:24 +00:00
crypto MFC r280360: 2015-04-07 02:53:14 +00:00
etc MFC 281112, 281166 2015-04-12 01:14:43 +00:00
games MFC r264400,r265836: 2014-12-31 23:25:37 +00:00
gnu MFC r276187, r276190, r271422: 2015-02-12 04:15:55 +00:00
include MFC r278600: 2015-04-03 17:19:29 +00:00
kerberos5 MFC r264400,r265836: 2014-12-31 23:25:37 +00:00
lib MFC r280818: 2015-04-12 06:52:43 +00:00
libexec MFC r268182: Initialize page sizes early for ia64. 2015-04-13 08:35:03 +00:00
release MFC r280861: 2015-04-08 22:02:15 +00:00
rescue MFC sa(4) and mt(1) improvements. 2015-03-24 14:36:10 +00:00
sbin MFC r281320: 2015-04-14 18:45:30 +00:00
secure MFC: r280297 2015-03-20 21:54:45 +00:00
share MFC r280819: 2015-04-12 06:54:53 +00:00
sys MFC 278474,278476,280279: 2015-04-14 20:05:26 +00:00
tests MFC r264400,r265836: 2014-12-31 23:25:37 +00:00
tools MFC r276598, r276607. 2015-04-08 00:52:45 +00:00
usr.bin MFC r281181, r281182; 2015-04-14 18:57:50 +00:00
usr.sbin MFC r281199: Remove hard limits on number of accepting NFS connections. 2015-04-14 09:58:10 +00:00
COPYRIGHT MFC r276462: 2014-12-31 10:03:19 +00:00
LOCKS Explicitly require Security Officer's approval for kernel PRNG bits. 2013-09-17 14:19:05 +00:00
MAINTAINERS MFH (r263160): remove lukemftpd 2014-08-23 15:07:09 +00:00
Makefile MFC r265840: Eliminate spurious warnings when grep doesn't find NO_UNIVERSE 2014-12-27 03:20:34 +00:00
Makefile.inc1 MFC r272814 (by bapt): 2015-04-10 20:38:31 +00:00
ObsoleteFiles.inc MFC r276891: 2015-01-23 18:56:31 +00:00
README
UPDATING Correct to the stable/10 commit in UPDATING and specify the correct ports/UPDATING 2014-12-15 21:22:42 +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.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

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