mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Kernel: Stop idling after handling an IRQ
If we receive an IRQ while the idle task is running, prevent it from re-halting the CPU after the IRQ handler returns. Instead have the idle task yield to the scheduler, so we can see if the IRQ has unblocked something.
This commit is contained in:
parent
b35ad5b523
commit
e1481dcb42
Notes:
sideshowbarker
2024-07-19 12:06:40 +09:00
Author: https://github.com/awesomekling
Commit: e1481dcb42
4 changed files with 28 additions and 5 deletions
|
@ -277,8 +277,6 @@ extern "C" [[noreturn]] void init()
|
|||
|
||||
sti();
|
||||
|
||||
// This now becomes the idle process :^)
|
||||
for (;;) {
|
||||
asm("hlt");
|
||||
}
|
||||
Scheduler::idle_loop();
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue