diff options
author | Justin Hibbits <[email protected]> | 2023-04-27 15:49:21 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-27 12:49:21 -0700 |
commit | 5a83f761c7c7445dda39d3fd3c5aa2a7bcb353f1 (patch) | |
tree | f573820d774636f085de72e89799f9d52a3ba20f /lib/libspl/include/sys | |
parent | 2fd1c30423620a5b198ac1a5aa2cff8e1e57b7f3 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Justin Hibbits <[email protected]>
Closes #14779
Diffstat (limited to 'lib/libspl/include/sys')
-rw-r--r-- | lib/libspl/include/sys/simd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libspl/include/sys/simd.h b/lib/libspl/include/sys/simd.h index a106967d0..41f9df506 100644 --- a/lib/libspl/include/sys/simd.h +++ b/lib/libspl/include/sys/simd.h @@ -551,7 +551,7 @@ zfs_sha512_available(void) #elif defined(__powerpc__) -#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) |