This commit is contained in:
Yifan Wu 2023-03-29 23:17:34 +08:00
parent ca30fac18b
commit 3897e6e50f

View File

@ -79,7 +79,7 @@ pub unsafe extern "C" fn timervec() -> ! {
// used for processing in this scratch space. // used for processing in this scratch space.
// a0 saved in mscrach, a1 ~ a3 saved in scratch space. // a0 saved in mscrach, a1 ~ a3 saved in scratch space.
//loop {} //loop {}
asm!( core::arch::asm!(
"csrrw a0, mscratch, a0", "csrrw a0, mscratch, a0",
"sd a1, 0(a0)", "sd a1, 0(a0)",
"sd a2, 8(a0)", "sd a2, 8(a0)",