Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. Note that the build is broken both before and after this commit in the openzfs repo... there's a non-trivial conflict of AT_UID/AT_GID in sys/elf_common.h. In FreeBSD, we solved it with a quick hack in spl/sys/vnode.h to undef AT_UID/AT_GID before, but in the standalone build the conflict is in the other direction. It's not clear how to best handle that; presumably we don't want the elf_common.h definition of AT_UID/AT_GID in ZFS code, but to solve it we would need to undef these before including machine/elf.h in spl/sys/simd_aarch64.h. Punting on this for now. Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
- Loading branch information