From 051d9ab85d7ba85300f1ca5ca9f1630b04ac84f0 Mon Sep 17 00:00:00 2001 From: Corwin Date: Sun, 22 Sep 2024 16:20:18 +0100 Subject: [PATCH] use export name --- agb/src/interrupt.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();