diff options
author | miod <> | 2016-11-04 13:53:06 +0000 |
---|---|---|
committer | miod <> | 2016-11-04 13:53:06 +0000 |
commit | 76a784dab583cd423f3ff66636ea7b6b6f4dee61 (patch) | |
tree | 06c87ac0c2093b8cd34c1a71b010e90d03aaa867 /src/lib | |
parent | 252facfdd0694e48464592726a507540bfeee459 (diff) | |
download | openbsd-76a784dab583cd423f3ff66636ea7b6b6f4dee61.tar.gz openbsd-76a784dab583cd423f3ff66636ea7b6b6f4dee61.tar.bz2 openbsd-76a784dab583cd423f3ff66636ea7b6b6f4dee61.zip |
In OPENSSL_wipe_cpu() on i386, which noone uses anyway, check the proper
flag for the presence of a FPU before deciding to wipe the fpu registers.
ok jsing@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x86cpuid.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x86cpuid.pl b/src/lib/libcrypto/x86cpuid.pl index 8a96cda6e6..7918629f64 100644 --- a/src/lib/libcrypto/x86cpuid.pl +++ b/src/lib/libcrypto/x86cpuid.pl | |||
@@ -148,7 +148,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } | |||
148 | &xor ("edx","edx"); | 148 | &xor ("edx","edx"); |
149 | &picmeup("ecx","OPENSSL_ia32cap_P"); | 149 | &picmeup("ecx","OPENSSL_ia32cap_P"); |
150 | &mov ("ecx",&DWP(0,"ecx")); | 150 | &mov ("ecx",&DWP(0,"ecx")); |
151 | &bt (&DWP(0,"ecx"),1); | 151 | &bt (&DWP(0,"ecx"),0); |
152 | &jnc (&label("no_x87")); | 152 | &jnc (&label("no_x87")); |
153 | if ($sse2) { | 153 | if ($sse2) { |
154 | &and ("ecx",1<<26|1<<24); # check SSE2 and FXSR bits | 154 | &and ("ecx",1<<26|1<<24); # check SSE2 and FXSR bits |