- Use old-style NPX state when creating the thread context. Fixes regression in 1st-stage install.

svn path=/trunk/; revision=20899
This commit is contained in:
Alex Ionescu 2006-01-15 20:13:08 +00:00
parent bfa1e86e2a
commit e129f72183

View file

@ -94,6 +94,7 @@ Ke386InitThreadWithContext(PKTHREAD Thread,
/* Setup the Fx Area */
FxSaveArea = &InitFrame->FxSaveArea;
Thread->NpxState = NPX_STATE_INVALID;
/* Check if we support FXsr */
if (KeI386FxsrPresent)
@ -136,7 +137,7 @@ Ke386InitThreadWithContext(PKTHREAD Thread,
CONTEXT_FLOATING_POINT;
/* Set the Thread's NPX State */
Thread->NpxState = NPX_STATE_NOT_LOADED;
Thread->NpxState = NPX_STATE_INVALID;
Thread->DispatcherHeader.NpxIrql = PASSIVE_LEVEL;
}
else
@ -147,13 +148,13 @@ Ke386InitThreadWithContext(PKTHREAD Thread,
}
/* Disable any debug regiseters */
Context->ContextFlags &= ~CONTEXT_DEBUG_REGISTERS;
Context->Dr0 = 0;
Context->Dr1 = 0;
Context->Dr2 = 0;
Context->Dr3 = 0;
Context->Dr6 = 0;
Context->Dr7 = 0;
Context->ContextFlags &= ~CONTEXT_DEBUG_REGISTERS;
/* Setup the Trap Frame */
TrapFrame = &InitFrame->TrapFrame;