ptos: thread: Initialize the threading subsystem
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -36,6 +36,11 @@ typedef struct _THREAD {
|
|||||||
TAILQ_ENTRY(_THREAD) ThreadLink;
|
TAILQ_ENTRY(_THREAD) ThreadLink;
|
||||||
} THREAD;
|
} THREAD;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize the threading layer
|
||||||
|
*/
|
||||||
|
VOID PsThreadInit(VOID);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exit the current thread
|
* Exit the current thread
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -135,6 +135,9 @@ KiKernelInit(VOID)
|
|||||||
/* Phase 2 init of bootstrap core */
|
/* Phase 2 init of bootstrap core */
|
||||||
HalKpcrP2Init(&BootstrapCore);
|
HalKpcrP2Init(&BootstrapCore);
|
||||||
|
|
||||||
|
/* Initialize threading */
|
||||||
|
PsThreadInit();
|
||||||
|
|
||||||
/* Initialize the PBI manager */
|
/* Initialize the PBI manager */
|
||||||
ExPbiInit();
|
ExPbiInit();
|
||||||
|
|
||||||
|
|||||||
@@ -64,3 +64,9 @@ PsExitThread(ULONG ExitCode)
|
|||||||
HalCpuSuspend();
|
HalCpuSuspend();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VOID
|
||||||
|
PsThreadInit(VOID)
|
||||||
|
{
|
||||||
|
SCHED_QUEUE_INIT(&ReaperQueue);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user