diff --git a/examples/hello_magic.rs b/examples/hello_magic.rs index 75eb6bc..8aa3c55 100644 --- a/examples/hello_magic.rs +++ b/examples/hello_magic.rs @@ -16,3 +16,8 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize { loop {} } } + +#[no_mangle] +static __IRQ_HANDLER: extern "C" fn() = irq_handler; + +extern "C" fn irq_handler() {}