Skip to content

Commit

Permalink
fix(x86_64): log interrupt even without handler
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Nov 19, 2024
1 parent e838ab9 commit 854cc9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/arch/x86_64/kernel/interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,14 @@ pub(crate) fn install_handlers() {
}

fn handle_interrupt(stack_frame: ExceptionStackFrame, index: u8, _error_code: Option<u64>) {
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();
}
Expand Down

0 comments on commit 854cc9c

Please sign in to comment.