mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user