fix(kernel/scheduler): use GetKernelProcess() for idle threads

This will make the init process to be pid 1

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-27 16:00:22 +00:00
parent 0a32c19923
commit 3482131b3f
2 changed files with 3 additions and 3 deletions

View File

@ -174,8 +174,7 @@ namespace Tasking::Scheduler
void Custom::StartIdleProcess()
{
IdleProcess = ctx->CreateProcess(nullptr, (char *)"Idle",
TaskExecutionMode::Kernel, true);
IdleProcess = ctx->GetKernelProcess();
for (int i = 0; i < SMP::CPUCores; i++)
{
TCB *thd = ctx->CreateThread(IdleProcess, IP(__custom_sched_idle_loop));