[Kernel] Add idle thread

This commit is contained in:
wheremyfoodat 2023-04-18 20:42:17 +03:00
parent 94ea97a419
commit 0b46b92bb7
6 changed files with 88 additions and 3 deletions

View file

@ -131,6 +131,7 @@ void Kernel::reset() {
// which is thankfully not used. Maybe we should prevent this
mainThread = makeThread(0, VirtualAddrs::StackTop, 0x30, -2, 0, ThreadStatus::Running);
currentThreadIndex = 0;
setupIdleThread();
// Create some of the OS ports
srvHandle = makePort("srv:"); // Service manager port