OK. I'm not completely at the end of my tether here, but I'm close.
I'm trying to write an OS kernel for #RiscV (using #qemu's "virt" machine with an S-mode kernel and OpenSBI), and every time I try to enable interrupts -- specifically the timer interrupt -- it just locks up hard.
I can see in the registers that `scause` is STI. Most of the time, `stvec` is the correct value (occasionally, it's not, which I don't get either).
1/2