riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
581 stars 307 forks source link

How to add an interrupt handler to bbl #190

Open ImagineMiracle-wxn opened 4 years ago

ImagineMiracle-wxn commented 4 years ago

I want to be able to respond to the PLIC interrupt signal in bbl, how to do it?

aswaterman commented 4 years ago

BBL already delegates S-mode PLIC interrupts to the S-mode software, so it should just be a matter of enabling that interrupt in S-mode.

Or did you want to handle M-mode PLIC interrupts?

On Mon, Feb 24, 2020 at 6:28 AM ImagineMiracle-wxn notifications@github.com wrote:

I want to be able to respond to the PLIC interrupt signal in bbl, how to do it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/riscv/riscv-pk/issues/190?email_source=notifications&email_token=AAH3XQU3KZJD76FOQ3GTSPLREO4ODA5CNFSM4K2HJANKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPW2YOA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH3XQQY5LY2B7DRLRUEZR3REO4ODANCNFSM4K2HJANA .