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;
|
||||
} THREAD;
|
||||
|
||||
/*
|
||||
* Initialize the threading layer
|
||||
*/
|
||||
VOID PsThreadInit(VOID);
|
||||
|
||||
/*
|
||||
* Exit the current thread
|
||||
*
|
||||
|
||||
@@ -135,6 +135,9 @@ KiKernelInit(VOID)
|
||||
/* Phase 2 init of bootstrap core */
|
||||
HalKpcrP2Init(&BootstrapCore);
|
||||
|
||||
/* Initialize threading */
|
||||
PsThreadInit();
|
||||
|
||||
/* Initialize the PBI manager */
|
||||
ExPbiInit();
|
||||
|
||||
|
||||
@@ -64,3 +64,9 @@ PsExitThread(ULONG ExitCode)
|
||||
HalCpuSuspend();
|
||||
}
|
||||
}
|
||||
|
||||
VOID
|
||||
PsThreadInit(VOID)
|
||||
{
|
||||
SCHED_QUEUE_INIT(&ReaperQueue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user