artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4360b2
)
A refactoring back in 2016 in which magic numbers where extracted into
author
anton
<anton@openbsd.org>
Tue, 4 Apr 2023 18:14:32 +0000
(18:14 +0000)
committer
anton
<anton@openbsd.org>
Tue, 4 Apr 2023 18:14:32 +0000
(18:14 +0000)
named constants accidentally dropped an instruction causing detection of
eXtended operations (XOP) on AMD hardware to break.
ok miod@ tb@
lib/libcrypto/x86_64cpuid.pl
patch
|
blob
|
history
diff --git
a/lib/libcrypto/x86_64cpuid.pl
b/lib/libcrypto/x86_64cpuid.pl
index
2780b0f
..
1b67d11
100644
(file)
--- a/
lib/libcrypto/x86_64cpuid.pl
+++ b/
lib/libcrypto/x86_64cpuid.pl
@@
-66,6
+66,7
@@
OPENSSL_ia32_cpuid:
mov %eax,%r10d
mov \$0x80000001,%eax
cpuid
+ or %ecx,%r9d
and \$IA32CAP_MASK1_AMD_XOP,%r9d # isolate AMD XOP bit
or \$1,%r9d # make sure %r9d is not zero