summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-03-04 20:05:04 +0100
committerAndy Polyakov <appro@openssl.org>2013-03-18 19:51:13 +0100
commitb04c0d805ce362c396e4a81048d7a4d3b772b2fc (patch)
treed6f8f27e27f797e77716c4c43d0e067339a113ab /crypto
parenta1a45c59ec3518e2cacea5e2c789a1bb770063e9 (diff)
x86cpuid.pl: make it work with older CPUs.
PR: 3005 (cherry picked from commit 5702e965d759dde8a098d8108660721ba2b93a7d)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/x86cpuid.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl
index a7464af19b..201df91078 100644
--- a/crypto/x86cpuid.pl
+++ b/crypto/x86cpuid.pl
@@ -60,6 +60,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&inc ("esi"); # number of cores
&mov ("eax",1);
+ &xor ("ecx","ecx");
&cpuid ();
&bt ("edx",28);
&jnc (&label("done"));
@@ -84,6 +85,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&set_label("nocacheinfo");
&mov ("eax",1);
+ &xor ("ecx","ecx");
&cpuid ();
&cmp ("ebp",0);
&jne (&label("notP4"));