freebsd-src/sys
Shawn Anastasio a6662c37b6 powerpc: Implement fpu_kern_enter/fpu_kern_leave
Summary:
Provide an implementation of fpu_kern_enter/fpu_kern_leave for PPC to
enable FPU, VSX, and Altivec usage in-kernel. The functions currently
only support FPU_KERN_NOCTX, but this is sufficient for ossl(1) and many
other users of the API.

This patchset has been tested on powerpc64le using a modified version of
the in-tree tools/tools/crypto/cryptocheck.c tool to check for FPU/Vec
register clobbering along with a follow-up patch to enable ossl(4) on
powerpc64*.

Reviewed by:	jhibbits
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D41540
2023-09-17 13:21:04 -04:00
..
amd64 amd64: Convert a cheap DIAGNOSTIC check to a KASSERT 2023-09-17 06:27:31 -04:00
arm gic_acpi: Limit the number of CPUs to GIC_MAXCPU 2023-09-09 12:13:57 -07:00
arm64 linux(4): Cleanup dummy syscall list on arm64 2023-09-12 13:37:45 +03:00
bsm timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
cam cam: Remove extra break 2023-09-09 11:13:25 -06:00
cddl kinst: do not look for a function epilogue 2023-09-15 16:33:41 +01:00
compat LinuxKPI: 802.11: fix counting the number of supbands 2023-09-14 21:20:54 +00:00
conf newvers.sh: Avoid picking up stray envars. 2023-09-13 18:10:46 +00:00
contrib zfs: retire z_nr_znodes 2023-09-16 14:18:05 +00:00
crypto armv8_crypto: fix recursive fpu_kern_enter call 2023-09-01 10:56:58 +01:00
ddb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
dev nvme: Give up when we've failed 2023-09-17 09:11:56 -06:00
dts sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
fs vfs: copy_file_range() between multiple mountpoints of the same fs type 2023-09-06 14:28:23 +02:00
gdb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom Fix geom build with clang 17 and KTR enabled 2023-09-17 14:13:09 +02:00
gnu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
i386 linux(4): Deduplicate mmap2 2023-09-05 21:16:39 +03:00
isa sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
kern vfs: count how many times vnlru got woken up due to vnode shortage 2023-09-16 17:26:39 +00:00
kgssapi sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
libkern sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
modules zfs: merge openzfs/zfs@0ee9b0239 2023-09-11 09:18:48 +02:00
net Assert that ifnet_detach_sxlock is held where needed. 2023-09-08 10:06:11 +00:00
net80211 net80211: improve scan debugging 2023-09-14 21:20:54 +00:00
netgraph sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
netinet sctp: further improve shutting down the read side of a socket 2023-09-13 13:02:51 +02:00
netinet6 Avoid IPv6 source address selection on accepting TCP connections 2023-09-14 11:39:06 +03:00
netipsec sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netlink sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netpfil ipfilter: Avoid allocating a new ipf token when not needed 2023-09-12 19:10:40 -07:00
netsmb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfsclient sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nfsserver sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nlm sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ofed ofed: mask seq_num identifier to occupy only 3 bytes 2023-08-22 16:09:13 -07:00
opencrypto sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
powerpc powerpc: Implement fpu_kern_enter/fpu_kern_leave 2023-09-17 13:21:04 -04:00
riscv riscv: Print stval in dump_regs for fatal exceptions 2023-09-08 16:35:59 -07:00
rpc sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
security mac_ipacl: Use IfAPI 2023-08-25 12:50:39 -04:00
sys powerpc: Implement fpu_kern_enter/fpu_kern_leave 2023-09-17 13:21:04 -04:00
teken sys: Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:06 -06:00
tests sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
tools pccarddevs2h.awk: Remove 2023-08-25 15:12:44 -06:00
ufs ufs: restore name cache fast path lookup 2023-09-09 21:48:57 +00:00
vm vm_radix: add a missing paren 2023-09-12 04:19:51 -05:00
x86 x86: Add defines for workaround bits in AMD's MSR "Decode Configuration" 2023-09-14 16:24:48 +01:00
xdr sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xen sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
Makefile sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures