Skip to content

Commit

Permalink
Merge pull request #1459 from hermit-os/log-interrupt
Browse files Browse the repository at this point in the history
fix(x86_64): log interrupt even without handler
  • Loading branch information
stlankes authored Nov 19, 2024
2 parents 9189daa + 854cc9c commit d6177f0
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 d6177f0

Please sign in to comment.