| void handle_m_ext_interrupt(void) { int_num = PLIC_ClaimIRQ(); /* get interrupt number by reading interrupt claim register */ ext_irq_handler(int_num); /* service the interrupt handler */ PLIC_CompleteIRQ(int_num); /* Clear interrupt claim/complete register */ PLIC_EnableIRQ(int_num); /* enable interrupt here or later */ } void ext_irq_handler(int_num) { PLIC_DisableIRQ(int_num); /* disable interrupt */ } |
| *************************************************************************************************** |
| |
| void handle_m_ext_interrupt(void) { int_num = PLIC_ClaimIRQ(); /* get interrupt number by reading interrupt claim register */ ext_irq_handler(int_num); /* service the interrupt service handler */ PLIC_EnableIRQ(int_num); /* enable interrupt here or later */ }
| |
| ************************************************************************************ |
| Regards Padmarao |
Is this comment for the PLIC in general or a particular implementation?
Cheers,
Richard
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
sw-dev+un...@groups.riscv.org.
To view this discussion on the web visit
https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CAP95y-jeO0GPiKFD7xXkMtUeA2%2BsYgKBRwWDJTw1SE2EEXmQEA%40mail.gmail.com.