summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorappro <appro>2012-02-28 14:20:21 +0000
committerappro <appro>2012-02-28 14:20:21 +0000
commit2e649cacdb781de9399e55f4d3fbde22d82ce6b7 (patch)
treef29b6a24bf0e4a4312435b4fc8b88111ba87cb5f
parent4f10cee2f48a7ae231b1c93cbad1bdb68fd3b3c9 (diff)
downloadopenssl-2e649cacdb781de9399e55f4d3fbde22d82ce6b7.tar.gz
x86cpuid.pl: fix processor capability detection on pre-586.
-rw-r--r--crypto/x86cpuid.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl
index e8eaef758..a1285b9d0 100644
--- a/crypto/x86cpuid.pl
+++ b/crypto/x86cpuid.pl
@@ -19,9 +19,9 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&pushf ();
&pop ("eax");
&xor ("ecx","eax");
- &bt ("ecx",21);
- &jnc (&label("generic"));
&xor ("eax","eax");
+ &bt ("ecx",21);
+ &jnc (&label("nocpuid"));
&cpuid ();
&mov ("edi","eax"); # max value for standard query level
@@ -136,6 +136,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&set_label("done");
&mov ("eax","esi");
&mov ("edx","ebp");
+&set_label("nocpuid");
&function_end("OPENSSL_ia32_cpuid");
&external_label("OPENSSL_ia32cap_P");