When doing AST processing:
authorkettenis <kettenis@openbsd.org>
Thu, 13 May 2021 06:44:11 +0000 (06:44 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 13 May 2021 06:44:11 +0000 (06:44 +0000)
commit0f6296b86303a33577b09ef08e0a0e23296d6b0c
tree8a8e0e68d8ede45bc3eff7108fbd885cc8273850
parent836f221d18e3d56e39770b1f567fa84b19becee9
When doing AST processing:
1) block interrupts, then check for ASTs
2) if no ASTs, return with interrupts blocked, so they can be re-enabled
   ATOMICALLY in the return to userspace
3) if an AST happened, then re-enable interrupts, call ast(), then goto 1

ok jsg@
sys/arch/riscv64/riscv64/exception.S