mirror of
https://github.com/openzfs/zfs.git
synced 2025-10-02 04:33:38 +00:00

Futher testing on my powerpc system revealed that the powerpc specific atomic implemetation was flawed. Rather than spending a lot of time correctly reimplementing it in assembly I have reworked it in to a 100% generic version. The generic version will not perform well but it does provide correct sematics. It will be used only when there is no architecture specific version available. These changes do not impact x86_64 and x86 which have have correct native implementations.
20 lines
390 B
Plaintext
20 lines
390 B
Plaintext
dnl #
|
|
dnl # Set the target arch for libspl atomic implementation
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_ARCH], [
|
|
AC_MSG_CHECKING(for target asm dir)
|
|
TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
|
|
|
|
case $TARGET_ARCH in
|
|
i386|x86_64)
|
|
TARGET_ASM_DIR=asm-${TARGET_ARCH}
|
|
;;
|
|
*)
|
|
TARGET_ASM_DIR=asm-generic
|
|
;;
|
|
esac
|
|
|
|
AC_SUBST([TARGET_ASM_DIR])
|
|
AC_MSG_RESULT([$TARGET_ASM_DIR])
|
|
])
|