From d0d34506b6ffd4395c362544421ebe814246c938 Mon Sep 17 00:00:00 2001 From: Codetector Date: Wed, 9 Oct 2024 00:29:35 -0700 Subject: [PATCH] Upgrade `asm` to `naked_asm` for 2024-10-9 nightly --- qingke-rt/macros/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qingke-rt/macros/src/lib.rs b/qingke-rt/macros/src/lib.rs index ddf1efa..9867859 100644 --- a/qingke-rt/macros/src/lib.rs +++ b/qingke-rt/macros/src/lib.rs @@ -226,14 +226,13 @@ pub fn interrupt(args: TokenStream, input: TokenStream) -> TokenStream { #[export_name = #ident_s] #[naked] unsafe extern "C" fn #wrapper_ident() { - core::arch::asm!(" + core::arch::naked_asm!(" addi sp, sp, -4 sw ra, 0(sp) jal {irq_impl} lw ra, 0(sp) addi sp, sp, 4 mret", - options(noreturn), irq_impl = sym #wrapped_ident ); }