rust-embedded / riscv

Low level access to RISC-V processors
841 stars 162 forks source link

fix critial section implementation #121

Closed tfx2001 closed 1 year ago

tfx2001 commented 1 year ago

It should be 0b1000 rather than 0b100. Bit 2 is a reserved bit, and Bit 3 is MIE that needs to be cleared.

image

tfx2001 commented 1 year ago

Nice find and fix thanks! Could you please add CHANGELOG entry?

Done.

dkhayes117 commented 1 year ago

bors r+

bors[bot] commented 1 year ago

Build succeeded: