Skip to content

Commit

Permalink
Upgrade asm to naked_asm for 2024-10-9 nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Codetector1374 authored and andelf committed Oct 9, 2024
1 parent 37435f1 commit 4d4608a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qingke-rt/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit 4d4608a

Please sign in to comment.