diff options
author | kib <kib@FreeBSD.org> | 2014-06-23 07:37:54 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-06-23 07:37:54 +0000 |
commit | fe547198b1973809825a6d6e48d12cf6f1c93741 (patch) | |
tree | a51002de5281f8a64709f9e315f0f0337d66108c /sys/i386/include/npx.h | |
parent | c2a4e94982dc22b2ff3eb85b284839f96f217faf (diff) | |
download | FreeBSD-src-fe547198b1973809825a6d6e48d12cf6f1c93741.zip FreeBSD-src-fe547198b1973809825a6d6e48d12cf6f1c93741.tar.gz |
Add FPU_KERN_KTHR flag to fpu_kern_enter(9), which avoids saving FPU
context into memory for the kernel threads which called
fpu_kern_thread(9). This allows the fpu_kern_enter() callers to not
check for is_fpu_kern_thread() to get the optimization.
Apply the flag to padlock(4) and aesni(4). In aesni_cipher_process(),
do not leak FPU context state on error.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'sys/i386/include/npx.h')
-rw-r--r-- | sys/i386/include/npx.h | 1 |
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 |