kernel: irq: fix build

We were missing some packages when building on riscv.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-08-30 00:34:49 +08:00
parent b78a71c495
commit 9af28d0a90

View file

@ -1,11 +1,11 @@
use crate::arch;
// use crate::services::SystemServices;
use xous_kernel::{MemoryAddress, PID};
static mut IRQ_HANDLERS: [Option<(PID, MemoryAddress, Option<MemoryAddress>)>; 32] = [None; 32];
#[cfg(baremetal)]
pub fn handle(irqs_pending: usize) -> Result<xous_kernel::Result, xous_kernel::Error> {
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