Find a file
John Baldwin 2329393c61 amd64: Use __seg_gs to implement per-CPU data accesses.
This makes use of the alternate address space support in both GCC and
clang to access per-CPU data as accesses relative to GS:.  The
original motivation for this is that it quiets verbose warnings from
GCC 12.  However, this version is also much easier to read and
allows the compiler to generate better code (e.g. the compiler can
use a GS: memory operand directly in other instructions such as IMUL
and CMP rather than always MOVing to a temporary register).

The one caveat is that the current approach is very inefficient at -O0
since the compiler expects to load the 0 base offset from a global
variable instead of assuming it is 0 (even with the const).

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D40647
2023-07-07 13:06:55 -07:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin Mark usage function as __dead2 in programs where it does not return 2023-07-07 10:45:17 -06:00
cddl dtrace: move kinst tests to common 2023-07-04 18:46:59 +03:00
contrib libexecinfo: Enable backtrace_test.backtrace_fmt_basic on amd64 again 2023-06-29 19:53:07 +03:00
crypto libcrypto: add missing symbols to the fips provider 2023-07-05 16:00:54 -04:00
etc Complete moving kinst of dtrace tests to common 2023-07-08 04:05:30 +08:00
gnu Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
include nvme: Don't install nvme_private.h in /usr/include. 2023-06-26 20:30:45 -07:00
kerberos5 kerberos: Request the OpenSSL 1.1 API 2023-06-23 18:53:36 -04:00
lib csu: Implement _start using as to satisfy unwinders on aarch64 2023-07-07 19:56:02 +03:00
libexec rtld: Annotate .rtld_start on aarch64 2023-07-07 19:55:28 +03:00
release release/DVD_PACKAGES: Update the names of drm-kmod ports 2023-07-05 04:24:52 +08:00
rescue Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
sbin Mark usage function as __dead2 in programs where it does not return 2023-07-07 10:45:17 -06:00
secure libcrypto: group definitions for libcrypto and fips 2023-07-05 16:00:54 -04:00
share bsd.compat.mk: Fix indentation for alignment 2023-07-07 20:17:19 +01:00
stand Mark usage function as __dead2 in programs where it does not return 2023-07-07 10:45:17 -06:00
sys amd64: Use __seg_gs to implement per-CPU data accesses. 2023-07-07 13:06:55 -07:00
targets local.dirdeps.mk skip N_host_libs for non-FreeBSD host 2023-05-04 11:58:39 -07:00
tests Mark usage function as __dead2 in programs where it does not return 2023-07-07 10:45:17 -06:00
tools fwctl_fetch: Add a comment describing the tool. 2023-07-07 13:06:26 -07:00
usr.bin Mark usage function as __dead2 in programs where it does not return 2023-07-07 10:45:18 -06:00
usr.sbin Mark usage function as __dead2 in programs where it does not return 2023-07-07 10:45:18 -06:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml Cirrus-CI: use llvm16 job by default and make llvm15 manual 2023-06-22 20:26:34 -04:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
CONTRIBUTING.md CONTRIBUTING.md: minor changes 2023-05-14 06:51:56 -06:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS
MAINTAINERS MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
Makefile Move MACHINE/MACHINE_ARCH handling to sys.machine.mk 2023-05-13 08:15:49 -07:00
Makefile.inc1 Generalise libcompat to be a list rather than a single option 2023-06-28 00:10:49 +01:00
Makefile.libcompat Generalise libcompat to be a list rather than a single option 2023-06-28 00:10:49 +01:00
Makefile.sys.inc
ObsoleteFiles.inc Stop removing OpenSSL man pages that were revived in 3.0.9 2023-07-03 18:58:24 +02:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES nvd/nda: Add release notes info. 2023-06-13 09:18:18 -06:00
UPDATING atkbc: Better test for old chromebooks 2023-06-29 08:34:47 -06:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

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. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
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.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB 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.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
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 FreeBSD Handbook.