diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2016-11-04 13:53:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2016-11-04 13:53:07 +0000 |
commit | 2fcb030476b3d44434152920c54f9ad48228713a (patch) | |
tree | 5b06aa82ce7f0501d2a2e862efbbacf35c87854d | |
parent | 08841fc316951d424130560a36cdb0dd0979d2de (diff) |
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@
-rw-r--r-- | lib/libcrypto/x86cpuid.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/x86cpuid.pl b/lib/libcrypto/x86cpuid.pl index 8a96cda6e69..7918629f643 100644 --- a/lib/libcrypto/x86cpuid.pl +++ b/lib/libcrypto/x86cpuid.pl @@ -148,7 +148,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } &xor ("edx","edx"); &picmeup("ecx","OPENSSL_ia32cap_P"); &mov ("ecx",&DWP(0,"ecx")); - &bt (&DWP(0,"ecx"),1); + &bt (&DWP(0,"ecx"),0); &jnc (&label("no_x87")); if ($sse2) { &and ("ecx",1<<26|1<<24); # check SSE2 and FXSR bits |