|
@@ -9,7 +9,7 @@ set_impl!(SingleHartCriticalSection);
|
|
|
unsafe impl Impl for SingleHartCriticalSection {
|
|
|
unsafe fn acquire() -> RawRestoreState {
|
|
|
let mut mstatus: usize;
|
|
|
- core::arch::asm!("csrrci {}, 0x300, 0b100", out(reg) mstatus);
|
|
|
+ core::arch::asm!("csrrci {}, mstatus, 0b1000", out(reg) mstatus);
|
|
|
core::mem::transmute::<_, mstatus::Mstatus>(mstatus).mie()
|
|
|
}
|
|
|
|