Skip to content

Commit e8cea0f

Browse files
committed
add core::arch::asm!
1 parent f4f0275 commit e8cea0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub unsafe fn delay(cycles: u32) {
9595
#[cfg(all(riscv, feature = "inline-asm"))]
9696
() => {
9797
let real_cyc = 1 + cycles / 2;
98-
asm!(
98+
core::arch::asm!(
9999
"1:",
100100
"addi {0}, {0}, -1",
101101
"bne {0}, zero, 1b",

0 commit comments

Comments
 (0)