summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-06-30 09:48:44 +0000
committerkib <kib@FreeBSD.org>2014-06-30 09:48:44 +0000
commitd02ef38799408e3a6c8914dd8899d6e33a18b99e (patch)
tree1cdbf0e90185182bff0bf7d098f7d52a156ffe79 /sys/i386/include
parentff62446f9059b50fbd507dbd0d14404a62eb1691 (diff)
downloadFreeBSD-src-d02ef38799408e3a6c8914dd8899d6e33a18b99e.zip
FreeBSD-src-d02ef38799408e3a6c8914dd8899d6e33a18b99e.tar.gz
MFC r267767:
Add FPU_KERN_KTHR flag to fpu_kern_enter(9). Apply the flag to padlock(4) and aesni(4). In aesni_cipher_process(), do not leak FPU context state on error.
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/npx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/include/npx.h b/sys/i386/include/npx.h
index 33a47b3..19e9b31 100644
--- a/sys/i386/include/npx.h
+++ b/sys/i386/include/npx.h
@@ -71,6 +71,7 @@ int is_fpu_kern_thread(u_int flags);
*/
#define FPU_KERN_NORMAL 0x0000
#define FPU_KERN_NOWAIT 0x0001
+#define FPU_KERN_KTHR 0x0002
#endif
OpenPOWER on IntegriCloud