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

@ -25,7 +25,7 @@ const SYSCALL_SEMAPHORE_DOWN: usize = 1022;
fn syscall(id: usize, args: [usize; 3]) -> isize {
let mut ret: isize;
unsafe {
asm!(
core::arch::asm!(
"ecall",
inlateout("x10") args[0] => ret,
in("x11") args[1],