diff options
author | Patrick Wildt <patrick@blueri.se> | 2021-04-09 17:12:55 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2021-06-10 15:58:48 +0300 |
commit | 78b1f44750fdd72a40f8249e1d0ba00e9037d5e7 (patch) | |
tree | 9f06e482d339760d7bb0104e7918513dcabb98ed /crypto/cpu-aarch64-linux.c | |
parent | 9bd009e711ecc4f83f0b94cebff69cc02ce5e219 (diff) |
There is no auxv.h on OpenBSD, so don't try including it.
All OpenBSD/arm64 machines support NEON, so we can always enable
it. The other extensions are not yet enabled, as there isn't yet
an API available to gather the necessary information.
(cherry picked from commit bde251932520d21fb7fc091491e5266f63c9aecd)
Diffstat (limited to 'crypto/cpu-aarch64-linux.c')
-rw-r--r-- | crypto/cpu-aarch64-linux.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/cpu-aarch64-linux.c b/crypto/cpu-aarch64-linux.c index 93d12237..0a62fd86 100644 --- a/crypto/cpu-aarch64-linux.c +++ b/crypto/cpu-aarch64-linux.c @@ -16,7 +16,9 @@ #if defined(OPENSSL_AARCH64) && !defined(OPENSSL_STATIC_ARMCAP) +#if !defined(__OpenBSD__) #include <sys/auxv.h> +#endif #include <openssl/arm_arch.h> @@ -65,6 +67,15 @@ void OPENSSL_cpuid_setup(void) { } } +#elif defined(__OpenBSD__) + +#include <stdlib.h> +#include <sys/types.h> + +void OPENSSL_cpuid_setup(void) { + OPENSSL_armcap_P |= ARMV7_NEON; +} + #else // linux void OPENSSL_cpuid_setup(void) { |