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

Details

Provenance
sanastasio_raptorengineering.comAuthored on Sep 17 2023, 2:40 PM
jhibbitsCommitted on Sep 17 2023, 5:21 PM
Reviewer
jhibbits
Differential Revision
D41540: powerpc: Implement fpu_kern_enter/fpu_kern_leave
Parents
rG67a27733d1f4: Revert "powerpc: Implement fpu_kern_enter/fpu_kern_leave"
Branches
Unknown
Tags
Unknown