summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/opencrypto/crypto.c')
-rw-r--r--sys/opencrypto/crypto.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c
index 5810780..53c11e6 100644
--- a/sys/opencrypto/crypto.c
+++ b/sys/opencrypto/crypto.c
@@ -82,6 +82,10 @@ __FBSDID("$FreeBSD$");
#include <sys/bus.h>
#include "cryptodev_if.h"
+#if defined(__i386__) || defined(__amd64__)
+#include <machine/pcb.h>
+#endif
+
SDT_PROVIDER_DEFINE(opencrypto);
/*
@@ -1241,6 +1245,10 @@ crypto_proc(void)
u_int32_t hid;
int result, hint;
+#if defined(__i386__) || defined(__amd64__)
+ fpu_kern_thread(FPU_KERN_NORMAL);
+#endif
+
CRYPTO_Q_LOCK();
for (;;) {
/*
OpenPOWER on IntegriCloud