mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-22 09:26:26 +04:00
sbi spec uses a6, a7 as sbicall id, so we need to set a6 to 0
This commit is contained in:
parent
6730b82eed
commit
e87fb6a4cb
@ -17,6 +17,7 @@ fn sbi_call(which: usize, arg0: usize, arg1: usize, arg2: usize) -> usize {
|
||||
let mut ret;
|
||||
unsafe {
|
||||
core::arch::asm!(
|
||||
"li x16, 0",
|
||||
"ecall",
|
||||
inlateout("x10") arg0 => ret,
|
||||
in("x11") arg1,
|
||||
|
Loading…
Reference in New Issue
Block a user