]> git.proxmox.com Git - mirror_zfs.git/commit
powerpc64: Support ELFv2 asm on Big Endian
authorJustin Hibbits <chmeeedalf@users.noreply.github.com>
Thu, 27 Apr 2023 19:49:21 +0000 (15:49 -0400)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2023 19:49:21 +0000 (12:49 -0700)
commit5a83f761c7c7445dda39d3fd3c5aa2a7bcb353f1
treef573820d774636f085de72e89799f9d52a3ba20f
parent2fd1c30423620a5b198ac1a5aa2cff8e1e57b7f3
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 <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Justin Hibbits <chmeeedalf@gmail.com>
Closes #14779
include/os/freebsd/spl/sys/simd_powerpc.h
lib/libspl/include/sys/simd.h
module/icp/asm-ppc64/sha2/sha256-p8.S
module/icp/asm-ppc64/sha2/sha256-ppc.S
module/icp/asm-ppc64/sha2/sha512-p8.S
module/icp/asm-ppc64/sha2/sha512-ppc.S