From 854cc9cd95eac65b5683c5d763caa0d0ee2fb88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Sun, 17 Nov 2024 15:08:05 +0100 Subject: [PATCH] fix(x86_64): log interrupt even without handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/arch/x86_64/kernel/interrupts.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arch/x86_64/kernel/interrupts.rs b/src/arch/x86_64/kernel/interrupts.rs index be5397f7a4..812fe9748a 100644 --- a/src/arch/x86_64/kernel/interrupts.rs +++ b/src/arch/x86_64/kernel/interrupts.rs @@ -166,13 +166,14 @@ pub(crate) fn install_handlers() { } fn handle_interrupt(stack_frame: ExceptionStackFrame, index: u8, _error_code: Option) { + debug!("received interrupt {index}"); + crate::arch::x86_64::swapgs(&stack_frame); use crate::arch::kernel::core_local::core_scheduler; use crate::scheduler::PerCoreSchedulerExt; if let Some(handlers) = IRQ_HANDLERS.get() { if let Some(map) = handlers.get(&(index - 32)) { - debug!("received interrupt {index}"); for handler in map.iter() { handler(); }