소스 검색

Merge pull request #115 from guttatus/prototyper/fix

fix(prototyper): fix incorrect mip setting when time interrupt processing
guttatus 2 달 전
부모
커밋
f960af5d09
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()