mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
[NTOSKRNL]
Use appropriated macros svn path=/trunk/; revision=49617
This commit is contained in:
parent
d4577f8b7f
commit
ae495fcf68
|
@ -264,19 +264,14 @@ KiInitMachineDependent(VOID)
|
|||
if (KeFeatureBits & KF_FXSR)
|
||||
{
|
||||
/* Get the current thread NPX state */
|
||||
FxSaveArea = (PVOID)
|
||||
((ULONG_PTR)KeGetCurrentThread()->InitialStack -
|
||||
NPX_FRAME_LENGTH);
|
||||
FxSaveArea = KiGetThreadNpxArea(KeGetCurrentThread());
|
||||
|
||||
/* Clear initial MXCsr mask */
|
||||
FxSaveArea->U.FxArea.MXCsrMask = 0;
|
||||
|
||||
/* Save the current NPX State */
|
||||
#ifdef __GNUC__
|
||||
asm volatile("fxsave %0\n\t" : "=m" (*FxSaveArea));
|
||||
#else
|
||||
__asm fxsave [FxSaveArea]
|
||||
#endif
|
||||
Ke386SaveFpuState(FxSaveArea);
|
||||
|
||||
/* Check if the current mask doesn't match the reserved bits */
|
||||
if (FxSaveArea->U.FxArea.MXCsrMask != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue