summaryrefslogtreecommitdiffstats
path: root/sys/amd64/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/amd64/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/amd64/include')
-rw-r--r--sys/amd64/include/fpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/fpu.h b/sys/amd64/include/fpu.h
index ef5d623..be1bdc6 100644
--- a/sys/amd64/include/fpu.h
+++ b/sys/amd64/include/fpu.h
@@ -84,6 +84,7 @@ void fpu_save_area_reset(struct savefpu *fsa);
*/
#define FPU_KERN_NORMAL 0x0000
#define FPU_KERN_NOWAIT 0x0001
+#define FPU_KERN_KTHR 0x0002
#endif
OpenPOWER on IntegriCloud