- Fixed a typo in the line which lead to actual zeroing of mxcsr, instead of zeroing only reserved bits (spotted by Kamil Hornicek aka "Pigglesworth").

- Improved the fix by actually applying the mask prepared earlier during kernel init (this is a more proper way to clear reserved bits of mxcsr).
- SSE/SSE2/etc is not broken anymore.
See issue #2748 for more details.

svn path=/trunk/; revision=29558
This commit is contained in:
Aleksey Bragin
2007-10-14 12:20:48 +00:00
parent 5590854701
commit 6ea648632e
+1 -1
View File
@@ -460,7 +460,7 @@ KeContextToTrapFrame(IN PCONTEXT Context,
MAXIMUM_SUPPORTED_EXTENSION);
/* Remove reserved bits from MXCSR */
FxSaveArea->U.FxArea.MXCsr &= ~0xFFBF;
FxSaveArea->U.FxArea.MXCsr &= KiMXCsrMask;
/* Mask out any invalid flags */
FxSaveArea->Cr0NpxState &= ~(CR0_EM | CR0_MP | CR0_TS);