Closed PitiBouchon closed 1 year ago
I'll check this in depth, but I'm 99% sure that usually you don't clear the interrupt pending flags directly from the sip
register. Instead, you interface the interrupt controller of your particular target (e.g., CLINT, PLIC, ...).
I'll check this in depth, but I'm 99% sure that usually you don't clear the interrupt pending flags directly from the
sip
register. Instead, you interface the interrupt controller of your particular target (e.g., CLINT, PLIC, ...).
Okay thx, I misunderstood something
No problem! Check this old issue, maybe it helps you with your use case :)
There are many functions for the
sie
register to set and clear bits but nothing for thesip
register which can only be read I don't know why but it would be super useful (for example if you want to clear the STIP bit to acknowledge a supervisor timer interrupt