Fixed kernel hang on IPC wait

This commit is contained in:
Alex
2023-02-13 16:16:09 +02:00
parent dc43de81e8
commit 9416bd5cb9
3 changed files with 6 additions and 5 deletions

View File

@ -170,7 +170,7 @@ namespace InterProcessCommunication
warn("Interrupts are disabled. This may cause a kernel hang.");
debug("Waiting for IPC %d (now %s)", ID, Hnd->Listening ? "listening" : "ready");
while (Hnd->Listening)
TaskManager->Schedule();
CPU::Halt();
debug("IPC %d is ready", ID);
return IPCSuccess;
}