]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: add aarch64 support for zstd
authorimp <imp@FreeBSD.org>
Wed, 28 Oct 2020 21:18:04 +0000 (21:18 +0000)
committerimp <imp@FreeBSD.org>
Wed, 28 Oct 2020 21:18:04 +0000 (21:18 +0000)
commit4e81b08fc28491231eec3b2ec8613940fcda9c7a
treeefeefae59c81aad05d86d1cada98e352da51cbb9
parent1040a2141d41fdc1866f5faf581adb8540b51d7f
loader: add aarch64 support for zstd

We don't have NEON available in the boot loader, so we have to disable
it. OpenZFS included ZSTD which used the wrong symbol to bring in neon
support. Change to use the code that's been submitted upstream as a
pull request to both.

__ARM_NEON is the proper symbol, defined in ARM C Language Extensions
Release 2.1 (https://developer.arm.com/documentation/ihi0053/d/). Some
sources suggest __ARM_NEON__, but that's the obsolete spelling from
prior versions of the standard.

OpenZFS Pull Request: https://github.com/openzfs/zfs/pull/11055
ZSTD Pull Request: https://github.com/facebook/zstd/pull/2356
stand/libsa/zfs/Makefile.inc