summaryrefslogtreecommitdiffstats
path: root/crypto/x86_64cpuid.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2017-11-05 20:03:17 +0100
committerAndy Polyakov <appro@openssl.org>2017-11-08 21:45:16 +0100
commitd6ee8f3dc4414cd97bd63b801f8644f0ff8a1f17 (patch)
tree738ea44a85df4e37720dc48a6a9e8fb6da93f415 /crypto/x86_64cpuid.pl
parent1b6fa9fdf86fcfd5ce2a84d41388b79e328e14a3 (diff)
OPENSSL_ia32cap: reserve for new extensions.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x86_64cpuid.pl')
-rw-r--r--crypto/x86_64cpuid.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x86_64cpuid.pl b/crypto/x86_64cpuid.pl
index f228c24ba1..7c8952e721 100644
--- a/crypto/x86_64cpuid.pl
+++ b/crypto/x86_64cpuid.pl
@@ -68,7 +68,7 @@ OPENSSL_ia32_cpuid:
.cfi_register %rbx,%r8
xor %eax,%eax
- mov %eax,8(%rdi) # clear extended feature flags
+ mov %rax,8(%rdi) # clear extended feature flags
cpuid
mov %eax,%r11d # max value for standard query level
@@ -187,6 +187,7 @@ OPENSSL_ia32_cpuid:
and \$0xfff7ffff,%ebx # clear ADCX/ADOX flag
.Lnotknights:
mov %ebx,8(%rdi) # save extended feature flags
+ mov %ecx,12(%rdi)
.Lno_extended_info:
bt \$27,%r9d # check OSXSAVE bit