From 5a83f761c7c7445dda39d3fd3c5aa2a7bcb353f1 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Thu, 27 Apr 2023 15:49:21 -0400 Subject: powerpc64: Support ELFv2 asm on Big Endian FreeBSD/powerpc64 is all ELFv2 since FreeBSD 13, even big endian. The existing sha256 and sha512 asm code assumes that BE is all ELFv1, and LE is ELFv2. Minor changes to add ELFv2 in the BE side gets this working correctly on FreeBSD with latest OpenZFS import. Reviewed-by: Tino Reichardt Reviewed-by: Brian Behlendorf Signed-off-by: Justin Hibbits Closes #14779 --- include/os/freebsd/spl/sys/simd_powerpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/os') diff --git a/include/os/freebsd/spl/sys/simd_powerpc.h b/include/os/freebsd/spl/sys/simd_powerpc.h index edaab81d1..cf3c712c6 100644 --- a/include/os/freebsd/spl/sys/simd_powerpc.h +++ b/include/os/freebsd/spl/sys/simd_powerpc.h @@ -49,7 +49,7 @@ #include #include -#define kfpu_allowed() 1 +#define kfpu_allowed() 0 #define kfpu_initialize(tsk) do {} while (0) #define kfpu_begin() do {} while (0) #define kfpu_end() do {} while (0) -- cgit v1.2.3