mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 02:19:15 +00:00
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:
@ -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));
|
||||
|
Reference in New Issue
Block a user