why use this implementation for critical in ISR. I believe RISCV can support the nesting interupt, and this implementation can not work in ISR with nesting interrupt support.
We updated the RISC-V port recently to support vectored and un-vectored interrupts, and will continue to add features, including nesting. As far as I’m aware the CLIC is not standard on all chips we test on, so it’s not as easy on some implementations.