Page MenuHomeFreeBSD

arm64: Enable SHA256 instruction in the kernel
Needs ReviewPublic

Authored by allanjude on Nov 21 2021, 4:46 PM.
Tags
None
Referenced Files
F136302365: D33071.id98799.diff
Mon, Nov 17, 2:59 AM
F136298611: D33071.id.diff
Mon, Nov 17, 2:27 AM
F136296507: D33071.id.diff
Mon, Nov 17, 2:13 AM
F136279682: D33071.id98802.diff
Mon, Nov 17, 12:28 AM
F136239916: D33071.id98799.diff
Sun, Nov 16, 8:00 PM
F136223294: D33071.diff
Sun, Nov 16, 6:08 PM
Unknown Object (File)
Fri, Nov 14, 3:25 PM
Unknown Object (File)
Sat, Nov 8, 11:28 AM
Subscribers

Details

Summary

This enables the existing support for ARM64 SHA2 instructions in
userland (used by libmd) to be used in the kernel and various modules
like: crypto, ipsec, geli, zfs

Sponsored by: Ampere Computing LLC
Sponsored by: Klara Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42908
Build 39796: arc lint + arc unit

Event Timeline

Is this safe if the caller doesn't have a floating point context? It could trash userspace floating point registers.

sys/conf/files.arm64
147

We also need -DARM64_SHA2 on sha256c.c. It might be easiest to add via CFLAGS.sha256c.c+=... in Makefile.arm64 and the module Makefile.