Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@blueri.se>2021-04-09 17:12:55 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2021-06-10 15:58:48 +0300
commit78b1f44750fdd72a40f8249e1d0ba00e9037d5e7 (patch)
tree9f06e482d339760d7bb0104e7918513dcabb98ed
parent9bd009e711ecc4f83f0b94cebff69cc02ce5e219 (diff)
OpenBSD/arm64 feature detectionHEADmono
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)
-rw-r--r--crypto/cpu-aarch64-linux.c11
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) {