OpenSBI - Interrupt/Exception delegation in S-Mode Hand-off state
I have read that all interrupts and exception will be handled in M-Mode per default. Except the specific bits in the CSR's mideleg and medeleg are explicitly set. Because I want port my own small kernel to RISC-V and I want use OpenSBI too, what is the hand-off state from OpenSBI according interrupts and exception? Are some of them forwarded to S-Mode? Because I think I can't modify the M-Mode registers mideleg and medeleg in S-Mode.
Thanks in advance!