Skip to content

Commit 49133eb

Browse files
committed
fix: repair code to build under nightly 2024-05-02 for ArceOS project
Signed-off-by: Zhouqi Jiang <[email protected]>
1 parent e2a1a3e commit 49133eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/detect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct TrapFrame {
147147
// handle exceptions only rather than interrupts.
148148
#[naked]
149149
unsafe extern "C" fn on_detect_trap() -> ! {
150-
core::arch::naked_asm!(
150+
asm!(
151151
".p2align 2",
152152
"addi sp, sp, -8*21",
153153
"sd ra, 0*8(sp)",

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![feature(doc_cfg)]
33
#![feature(naked_functions)]
44
#![feature(riscv_ext_intrinsics)]
5+
#![feature(asm_const)]
56
#![doc = include_str!("../README.md")]
67

78
#[macro_use]

0 commit comments

Comments
 (0)