Now, crate::interrupt has machine and supervisor modules for M and S mode, respectively.
A new feature s-mode reexports the content of the appropriate module in crate::interrupt.
I also modified how the critical section is implemented depending on whether the s-mode feature has been selected.
(I messed up with previous PR)
This PR solves #114
Now,
crate::interrupt
has machine and supervisor modules for M and S mode, respectively. A new features-mode
reexports the content of the appropriate module incrate::interrupt
. I also modified how the critical section is implemented depending on whether thes-mode
feature has been selected.