HomeFreeBSD

powerpc: Implement fpu_kern_enter/fpu_kern_leave

Description

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
Relnotes: yes

(cherry picked from commit a6662c37b6ffee46e18be5f7570149edc64c1d0b)

Details

Provenance
sanastasio_raptorengineering.comAuthored on Sep 17 2023, 2:40 PM
alfredoCommitted on Nov 19 2023, 8:55 PM
Reviewer
jhibbits
Differential Revision
D41540: powerpc: Implement fpu_kern_enter/fpu_kern_leave
Parents
rG4595a9e9af82: netstat: fix missing tab in icmp6 output
Branches
Unknown
Tags
Unknown