[Kernel] Cleaning up

This commit is contained in:
wheremyfoodat 2022-09-19 22:19:36 +03:00
parent 1c4348248d
commit ad07c70772
9 changed files with 21 additions and 37 deletions

View file

@ -72,10 +72,11 @@ void Kernel::reset() {
currentProcess = makeProcess();
// Make main thread object. We do not have to set the entrypoint and SP for it as the ROM loader does.
// Main thread seems to have a priority of 0x30
currentThread = makeThread(0, 0, 0x30, 0);
mainThread = makeThread(0, 0, 0x30, 0);
currentThread = mainThread;
// Create global service manager port
makePort("srv:");
srvHandle = makePort("srv:");
}
// Get pointer to thread-local storage