Go to file
Mina Galić 55639067a2 apic: prevent divide by zero in CPU frequency init
If a CPU for some reason returns 0 as CPU frequency, we currently panic
on the resulting divide by zero when trying to initialize the CPU(s) via
APIC. When this happens, we'll fallback to measuring the frequency
instead.

PR: 269767
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/664
Approved by: re@ (cperciva)

(cherry picked from commit 499171a98c)
(cherry picked from commit a1c63b8e29)
2023-03-02 10:09:47 -07:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github/workflows .github: Add a build on Ubuntu 22.04 using llvm 14. 2022-07-13 11:44:26 -07:00
bin nproc: denote an incompatiblity with Linux 2023-02-23 17:51:28 +00:00
cddl Delete obsolete Solaris compat header file stdlib.h 2023-03-02 16:22:26 +08:00
contrib unbound: Vendor import 1.17.1 2023-02-27 18:40:27 -08:00
crypto ssh: update to OpenSSH 9.2p1 2023-02-14 17:33:56 -05:00
etc timeout: Move from /usr/bin to /bin 2023-02-07 18:37:53 +01:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-19 14:10:48 -05:00
include netlink: add headers installation 2023-02-15 17:14:47 +00:00
kerberos5 pkgbase: split kerberos binaries and libs 2022-08-19 14:27:16 +01:00
lib efivar: Really look for labels for the provider with right efimedia 2023-02-18 23:47:25 -07:00
libexec cleanvar: Be more careful when cleaning up /var. 2023-02-21 07:37:30 -08:00
release 13.2: create releng/13.2 branch 2023-02-09 16:37:06 -08:00
rescue Add an internal libiscsiutil library. 2022-04-29 14:13:00 -07:00
sbin ping: Fix unsigned integer underflow resuling in a ping -R segfault 2023-02-27 10:46:42 -08:00
secure ssh: update to OpenSSH 9.2p1 2023-02-14 17:33:56 -05:00
share netlink: make the maximum allowed netlink socket buffer runtime tunable. 2023-03-01 16:53:36 +00:00
stand stand: fix build userboot without zfs 2023-03-02 10:09:32 -07:00
sys apic: prevent divide by zero in CPU frequency init 2023-03-02 10:09:47 -07:00
targets Fix bootstrapping to actually build lldb-tblgen for later use 2021-09-07 13:08:18 +01:00
tests sockets: add MSG_TRUNC flag handling for recvfrom()/recvmsg(). 2023-02-09 18:01:49 +00:00
tools Bring our tzcode up to date. 2023-01-31 10:44:19 +01:00
usr.bin Add nproc(1) 2023-02-23 17:51:07 +00:00
usr.sbin unbound: Fix config file path 2023-02-28 05:37:55 -08:00
.arcconfig arcconfig: add callsign again 2020-11-23 04:39:29 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: add gpart show to setup script 2023-01-09 12:26:34 -05:00
.clang-format clang-format: Add bitset loop macros 2021-11-01 09:20:11 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore add exuberant ctags tags file to gitignore 2022-01-11 15:25:37 +02:00
COPYRIGHT copyrights: Happy New Year 2021 2020-12-31 10:29:44 -05:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Add a pointer to csprng@ for the CSPRNG driver. This is enforced anyway by 2020-09-01 08:02:12 +00:00
Makefile Makefile: Avoid sanitizing PATH on non-FreeBSD systems 2023-01-31 01:46:18 +00:00
Makefile.inc1 Makefile.inc1: Print the right PATH for missing install tool error 2023-01-31 10:44:19 +01:00
Makefile.libcompat Prefer MK_SSP=no to SSP_CFLAGS= 2021-08-11 13:56:28 -03:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc loader: always install help files 2023-02-23 14:10:19 -04:00
README.md hier(7): remove text describing /usr/src layout 2022-12-05 12:37:07 -04:00
RELNOTES Note upgrade to sendmail 8.17.1 2023-02-01 02:48:05 +00:00
UPDATING LinuxKPI: move pm_message_t from kernel.h to pm.h 2022-07-01 13:48:24 +00: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* 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.