提交 6c0e13bb 编写于 作者: chyyuu1972's avatar chyyuu1972

sbi spec uses a6, a7 as sbicall id, so we need to set a6 to 0

上级 b640c450
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册