mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-10 23:09:18 +00:00
Revise PID and TID generation to align with standards
This commit is contained in:
@ -114,7 +114,8 @@ void KernelMainThread()
|
||||
|
||||
KPrint("Executing %s", Config.InitPath);
|
||||
int ExitCode = -1;
|
||||
Tasking::TCB *initThread = nullptr;
|
||||
Tasking::TCB *initThread;
|
||||
Tasking::PCB *initProc;
|
||||
int tid = SpawnInit();
|
||||
if (tid < 0)
|
||||
{
|
||||
@ -127,7 +128,8 @@ void KernelMainThread()
|
||||
Config.InitPath);
|
||||
thisThread->SetPriority(Tasking::Idle);
|
||||
|
||||
initThread = TaskManager->GetThreadByID(tid);
|
||||
initProc = TaskManager->GetProcessByID(tid);
|
||||
initThread = TaskManager->GetThreadByID(tid, initProc);
|
||||
TaskManager->WaitForThread(initThread);
|
||||
ExitCode = initThread->GetExitCode();
|
||||
Exit:
|
||||
|
Reference in New Issue
Block a user