The SIE bit enables or disables all interrupts in supervisor mode. When SIE is clear, interrupts are not taken while in supervisor mode. When the hart is running in user-mode, the value in SIE isignored, and supervisor-level interrupts are enabled. The supervisor can disable indivdual interrupt sources using the sie register.
【笔记】rCore (RISC-V):抢占式 OS 与中断机制 | 苦瓜小仔
协作式和抢占式
https://zjp-cn.github.io/posts/rcore-os-multiprograms/