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; TAILQ_ENTRY(_THREAD) ThreadLink;
} THREAD; } THREAD;
/*
* Initialize the threading layer
*/
VOID PsThreadInit(VOID);
/* /*
* Exit the current thread * Exit the current thread
* *
+3
View File
@@ -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();
+6
View File
@@ -64,3 +64,9 @@ PsExitThread(ULONG ExitCode)
HalCpuSuspend(); HalCpuSuspend();
} }
} }
VOID
PsThreadInit(VOID)
{
SCHED_QUEUE_INIT(&ReaperQueue);
}