From e129f72183892a777bf2fbe882caf704be65ff25 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sun, 15 Jan 2006 20:13:08 +0000 Subject: [PATCH] - Use old-style NPX state when creating the thread context. Fixes regression in 1st-stage install. svn path=/trunk/; revision=20899 --- reactos/ntoskrnl/ke/i386/thread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/thread.c b/reactos/ntoskrnl/ke/i386/thread.c index 9a1b5cf842b..21acb9bf0b4 100644 --- a/reactos/ntoskrnl/ke/i386/thread.c +++ b/reactos/ntoskrnl/ke/i386/thread.c @@ -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;