summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2016-11-04 13:53:06 +0000
committermiod <miod@openbsd.org>2016-11-04 13:53:06 +0000
commit5aa3dbc558702d70177d97cfe4e839033dde80f2 (patch)
tree5b386649b33ace43003a7da81c4628ef72482b59
parentUse 'rm -f' to remove the rollback tarball if we have an errir; it may (diff)
downloadwireguard-openbsd-5aa3dbc558702d70177d97cfe4e839033dde80f2.tar.xz
wireguard-openbsd-5aa3dbc558702d70177d97cfe4e839033dde80f2.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@
-rw-r--r--lib/libcrypto/x86cpuid.pl2
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