diff options
author | Theo Buehler <tb@openbsd.org> | 2024-10-18 10:44:55 -0600 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-10-18 10:44:55 -0600 |
commit | cca1d39f2830337ed285fe079df315eedc38cbef (patch) | |
tree | e9a8e4a9e338221480e88f807b3d8a29d854a759 /patches | |
parent | 27ec5b142ac5650f0e990da130405dd22cf3e137 (diff) | |
download | portable-cca1d39f2830337ed285fe079df315eedc38cbef.tar.gz portable-cca1d39f2830337ed285fe079df315eedc38cbef.tar.bz2 portable-cca1d39f2830337ed285fe079df315eedc38cbef.zip |
Also disable cpu caps on windows i386
Diffstat (limited to 'patches')
-rw-r--r-- | patches/patch-i386-crypto-cpu-caps.c.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/patch-i386-crypto-cpu-caps.c.patch b/patches/patch-i386-crypto-cpu-caps.c.patch new file mode 100644 index 0000000..c85e33c --- /dev/null +++ b/patches/patch-i386-crypto-cpu-caps.c.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- crypto/arch/i386/crypto_cpu_caps.c.orig Fri Oct 18 17:35:20 2024 | ||
2 | +++ crypto/arch/i386/crypto_cpu_caps.c Fri Oct 18 17:39:13 2024 | ||
3 | @@ -33,7 +33,7 @@ cpuid(uint32_t eax, uint32_t *out_eax, uint32_t *out_e | ||
4 | { | ||
5 | uint32_t ebx = 0, ecx = 0, edx = 0; | ||
6 | |||
7 | -#ifndef OPENSSL_NO_ASM | ||
8 | +#if defined(__GNUC__) && !defined(OPENSSL_NO_ASM) | ||
9 | __asm__ ("cpuid": "+a"(eax), "+b"(ebx), "+c"(ecx), "+d"(edx)); | ||
10 | #else | ||
11 | eax = 0; | ||
12 | @@ -54,7 +54,7 @@ xgetbv(uint32_t ecx, uint32_t *out_eax, uint32_t *out_ | ||
13 | { | ||
14 | uint32_t eax = 0, edx = 0; | ||
15 | |||
16 | -#ifndef OPENSSL_NO_ASM | ||
17 | +#if defined(__GNUC__) && !defined(OPENSSL_NO_ASM) | ||
18 | __asm__ ("xgetbv": "+a"(eax), "+c"(ecx), "+d"(edx)); | ||
19 | #endif | ||
20 | |||