blob: dcfbdc09b9e32b5658aeb73221bb5c6af5a1dc11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
Disable feature detection until we find a more portable way.
--- crypto/arch/aarch64/crypto_cpu_caps.c.orig Sat Dec 14 13:45:16 2024
+++ crypto/arch/aarch64/crypto_cpu_caps.c Sat Dec 14 13:54:06 2024
@@ -16,9 +16,12 @@
*/
#include <sys/types.h>
+
+#if defined(__OpenBSD__)
#include <sys/sysctl.h>
#include <machine/cpu.h>
+#endif
#include <stddef.h>
#include <stdio.h>
@@ -67,6 +70,7 @@ parse_isar0(uint64_t isar0)
return caps;
}
+#if defined(__OpenBSD__)
static int
read_isar0(uint64_t *isar0)
{
@@ -84,6 +88,13 @@ read_isar0(uint64_t *isar0)
return 1;
}
+#else
+static int
+read_isar0(uint64_t *isar0)
+{
+ return 0;
+}
+#endif
void
crypto_cpu_caps_init(void)
|