Fix build by initializing thread dispatcher header
This commit is contained in:
@@ -645,7 +645,7 @@ typedef struct _KTHREAD
|
||||
LIST_ENTRY ThreadListEntry;
|
||||
UCHAR LargeStack;
|
||||
UCHAR PowerState;
|
||||
UCHAR NpxIrql;
|
||||
UCHAR NpxRunLevel;
|
||||
UCHAR Spare5;
|
||||
BOOLEAN AutoAlignment;
|
||||
UCHAR Iopl;
|
||||
|
||||
@@ -66,7 +66,7 @@ KE::KThread::InitializeThreadContext(IN PKTHREAD Thread,
|
||||
|
||||
/* Disable coprocessor floating point state */
|
||||
Thread->NpxState = NPX_STATE_UNLOADED;
|
||||
Thread->Header.NpxIrql = PASSIVE_LEVEL;
|
||||
Thread->NpxRunLevel = PASSIVE_LEVEL;
|
||||
|
||||
/* Set initial floating point state */
|
||||
FxSaveFormat = (PFX_SAVE_FORMAT)ContextRecord->ExtendedRegisters;
|
||||
|
||||
@@ -144,8 +144,9 @@ KE::KThread::InitializeThread(IN PKPROCESS Process,
|
||||
Allocation = FALSE;
|
||||
|
||||
/* Initialize thread dispatcher header */
|
||||
Thread->Header.Type = ThreadObject;
|
||||
Thread->Header.SignalState = 0;
|
||||
Thread->Header.Size = sizeof(KTHREAD) / sizeof(LONG);
|
||||
Thread->Header.Type = ThreadObject;
|
||||
|
||||
/* Initialize thread wait list */
|
||||
RTL::LinkedList::InitializeListHead(&Thread->Header.WaitListHead);
|
||||
@@ -269,7 +270,7 @@ KE::KThread::InitializeThread(IN PKPROCESS Process,
|
||||
*/
|
||||
XTAPI
|
||||
VOID
|
||||
KE::KThread::StartThread(IN PKTHREAD Thread)
|
||||
KE::KThread::StartThread(IN OUT PKTHREAD Thread)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user