Ref asm&global_asm from core::arch.

This commit is contained in:
Yifan Wu 2022-01-21 10:11:07 -08:00
parent 2cad6d291e
commit f495dbb1e6
8 changed files with 10 additions and 5 deletions

View file

@ -14,7 +14,7 @@ const SBI_SHUTDOWN: usize = 8;
fn sbi_call(which: usize, arg0: usize, arg1: usize, arg2: usize) -> usize {
let mut ret;
unsafe {
asm!(
core::arch::asm!(
"ecall",
inlateout("x10") arg0 => ret,
in("x11") arg1,