projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656829b
)
x86cpuid.pl: make it work with older CPUs.
author
Andy Polyakov
<appro@openssl.org>
Mon, 4 Mar 2013 19:05:04 +0000
(20:05 +0100)
committer
Andy Polyakov
<appro@openssl.org>
Mon, 4 Mar 2013 19:05:04 +0000
(20:05 +0100)
PR: 3005
crypto/x86cpuid.pl
patch
|
blob
|
history
diff --git
a/crypto/x86cpuid.pl
b/crypto/x86cpuid.pl
index 3b6c469d082613eec9e2078c859cc87277035156..e8a75181afce09206f72fd82bb77db5f7b1493ab 100644
(file)
--- a/
crypto/x86cpuid.pl
+++ b/
crypto/x86cpuid.pl
@@
-69,6
+69,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("generic"));
@@
-102,6
+103,7
@@
for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&set_label("nocacheinfo");
&mov ("eax",1);
+ &xor ("ecx","ecx");
&cpuid ();
&and ("edx",0xbfefffff); # force reserved bits #20, #30 to 0
&cmp ("ebp",0);