From d76f6fee0e046e11e1b8868a6c5657810f39fe51 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 8 Oct 2024 16:11:21 +0800 Subject: [PATCH] fix interrupt handler --- libcortex_a9/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcortex_a9/src/lib.rs b/libcortex_a9/src/lib.rs index b124a38..d433c93 100644 --- a/libcortex_a9/src/lib.rs +++ b/libcortex_a9/src/lib.rs @@ -51,7 +51,7 @@ macro_rules! interrupt_handler { #[link_section = ".text.boot"] #[no_mangle] #[naked] - pub unsafe extern "C" fn $name() -> ! { + pub unsafe extern "C" fn $name() { asm!( // setup SP, depending on CPU 0 or 1 // and preserve registers