module: freebsd: fix aarch64 fpu handling
commitd0cbd9feaf5b82130f2e679256c71e0c7413aae9
authorKyle Evans <kevans@FreeBSD.org>
Fri, 7 Apr 2023 00:40:34 +0000 (7 00:40 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Apr 2023 19:40:18 +0000 (10 12:40 -0700)
treef57b332596679cb817ad74885a8298f7e448360b
parentdee77f45d0f961de0b421f36bbde4196624a13c5
module: freebsd: fix aarch64 fpu handling

Just like x86, aarch64 needs to use the fpu_kern(9) API around FPU
usage, otherwise we panic promptly at boot as soon as ZFS attempts to
do checksum benchmarking.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Closes #14715
include/os/freebsd/spl/sys/simd_aarch64.h