diff --git a/kernel/src/irq.rs b/kernel/src/irq.rs index d61dc88e2..825805dcc 100644 --- a/kernel/src/irq.rs +++ b/kernel/src/irq.rs @@ -1,11 +1,11 @@ use crate::arch; -// use crate::services::SystemServices; use xous_kernel::{MemoryAddress, PID}; static mut IRQ_HANDLERS: [Option<(PID, MemoryAddress, Option)>; 32] = [None; 32]; #[cfg(baremetal)] pub fn handle(irqs_pending: usize) -> Result { + use crate::services::SystemServices; // Unsafe is required here because we're accessing a static // mutable value, and it could be modified from various threads. // However, this is fine because this is run from an IRQ context