ptos: thread: Initialize the threading subsystem

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-15 21:20:01 +00:00
parent e00249b958
commit d72df46f64
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -36,6 +36,11 @@ typedef struct _THREAD {
TAILQ_ENTRY(_THREAD) ThreadLink;
} THREAD;
/*
* Initialize the threading layer
*/
VOID PsThreadInit(VOID);
/*
* Exit the current thread
*
+3
View File
@@ -135,6 +135,9 @@ KiKernelInit(VOID)
/* Phase 2 init of bootstrap core */
HalKpcrP2Init(&BootstrapCore);
/* Initialize threading */
PsThreadInit();
/* Initialize the PBI manager */
ExPbiInit();
+6
View File
@@ -64,3 +64,9 @@ PsExitThread(ULONG ExitCode)
HalCpuSuspend();
}
}
VOID
PsThreadInit(VOID)
{
SCHED_QUEUE_INIT(&ReaperQueue);
}