We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a1a3e commit 49133ebCopy full SHA for 49133eb
src/detect.rs
@@ -147,7 +147,7 @@ struct TrapFrame {
147
// handle exceptions only rather than interrupts.
148
#[naked]
149
unsafe extern "C" fn on_detect_trap() -> ! {
150
- core::arch::naked_asm!(
+ asm!(
151
".p2align 2",
152
"addi sp, sp, -8*21",
153
"sd ra, 0*8(sp)",
src/lib.rs
@@ -2,6 +2,7 @@
2
#![feature(doc_cfg)]
3
#![feature(naked_functions)]
4
#![feature(riscv_ext_intrinsics)]
5
+#![feature(asm_const)]
6
#![doc = include_str!("../README.md")]
7
8
#[macro_use]
0 commit comments