aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-03-10 12:53:00 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-03-10 12:53:00 +0100
commit713c8b06e723cc3c0e544ed359f28a45f9f1759e (patch)
treea42d6b5b814848ea7f4861bec70f37f3d107c224
parentcf4508cfe643ce5ea021a067851e24c25deeeb12 (diff)
added an EOI (end of interrupt) signal to the timer_interrupt_handler in src/interrupts.rs to send an EOI messgage to the cpu to allow for another hardware interrupt to proceed and not hog up the CPU
-rw-r--r--StrixKernel/src/interrupts.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/StrixKernel/src/interrupts.rs b/StrixKernel/src/interrupts.rs
index 2cc01b5..02d39f0 100644
--- a/StrixKernel/src/interrupts.rs
+++ b/StrixKernel/src/interrupts.rs
@@ -73,6 +73,11 @@ extern "x86-interrupt" fn timer_interrupt_handler(
_stack_frame: InterruptStackFrame)
{
print!(".");
+
+ unsafe {
+ PICS.lock()
+ .notify_end_of_interrupt(InterruptIndex::Timer.as_u8());
+ }
}