diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-05-30 23:44:21 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-05-30 23:44:21 +0000 |
commit | fa9df4abe12110a487787e1d598d0c05af348a13 (patch) | |
tree | 8fe4415c7c155100ca395c3fcc5aca0e656c49c0 /sys/i386/include/npx.h | |
parent | e96ef6e51ce2eada4161f8c46c031c67179ff703 (diff) | |
download | FreeBSD-src-fa9df4abe12110a487787e1d598d0c05af348a13.zip FreeBSD-src-fa9df4abe12110a487787e1d598d0c05af348a13.tar.gz |
Use the method described in IA-32 Intel Architecture Software Developer's
Manual chapter 11.6.6 to get valid mxcsr bits, use the mxcsr mask to clear
invalid bits passed by user code.
Reviewed by: bde
Diffstat (limited to 'sys/i386/include/npx.h')
-rw-r--r-- | sys/i386/include/npx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/include/npx.h b/sys/i386/include/npx.h index 86b9af8..11f1034 100644 --- a/sys/i386/include/npx.h +++ b/sys/i386/include/npx.h @@ -92,8 +92,8 @@ struct envxmm { u_int32_t en_foo; /* floating operand offset */ u_int16_t en_fos; /* floating operand segment selector */ u_int16_t en_pad1; /* padding */ - u_int32_t en_mxcsr; /* SSE sontorol/status register */ - u_int32_t en_pad2; /* padding */ + u_int32_t en_mxcsr; /* SSE control/status register */ + u_int32_t en_mxcsr_mask; /* valid bits in mxcsr */ }; /* Contents of each SSE extended accumulator */ |