Ref asm&global_asm from core::arch.
This commit is contained in:
parent
2cad6d291e
commit
f495dbb1e6
8 changed files with 10 additions and 5 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue