aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2023-04-27 00:47:14 +0000
committerKyle Evans <kevans@FreeBSD.org>2023-04-27 00:47:14 +0000
commit087a2e64ba7ddcd6eb84597eb50c354f358fb7cd (patch)
tree54b67971bed11019f514d08db1e85a06cbdb9dc1
parent42f0ac5f1bd2bb5c779ce51c369a0e47c62cbf9b (diff)
openzfs: re-enable FPU usage on aarch64
The BLAKE3 generated assembly files have now been updated to avoid clobbering x18, we can safely re-enable FPU usage on aarch64.
-rw-r--r--sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h
index 9edbc5f40455..4fe211983c33 100644
--- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h
+++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_aarch64.h
@@ -58,12 +58,7 @@
#else
-/*
- * XXX kfpu_allowed() should be 1, but this is pending a fix to the BLAKE3
- * generated assembly to avoid clobbering x18. Turn it back on after that
- * lands.
- */
-#define kfpu_allowed() 0
+#define kfpu_allowed() 1
#define kfpu_begin() do { \
if (__predict_false(!is_fpu_kern_thread(0))) \
fpu_kern_enter(curthread, NULL, FPU_KERN_NOCTX); \