diff --git a/agb/src/interrupt.rs b/agb/src/interrupt.rs index c6d993bb..34b8324a 100644 --- a/agb/src/interrupt.rs +++ b/agb/src/interrupt.rs @@ -141,7 +141,8 @@ static mut INTERRUPT_TABLE: [InterruptRoot; 14] = [ ]; #[no_mangle] -extern "C" fn __RUST_INTERRUPT_HANDLER(interrupt: u16) -> u16 { +#[export_name = "__RUST_INTERRUPT_HANDLER"] +extern "C" fn interrupt_handler(interrupt: u16) -> u16 { for (i, root) in unsafe { INTERRUPT_TABLE.iter().enumerate() } { if (1 << i) & interrupt != 0 { root.trigger_interrupts();