Browse Source

fix(prototyper): fix incorrect mip setting when time interrupt processing

Signed-off-by: guttatus <[email protected]>
guttatus 2 weeks ago
parent
commit
09e79ab7fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      prototyper/prototyper/src/sbi/trap/mod.rs

+ 1 - 1
prototyper/prototyper/src/sbi/trap/mod.rs

@@ -42,7 +42,7 @@ pub extern "C" fn fast_handler(
 
                     ipi::clear_mtime();
                     unsafe {
-                        mip::clear_stimer();
+                        mip::set_stimer();
                     }
                     save_regs(&mut ctx);
                     ctx.restore()