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