Skip to content

Commit

Permalink
Extend to 127 IRQs
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jul 28, 2023
1 parent b1c349b commit c03eba3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/risc-v/include/qemu-rv/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@

/* Map RISC-V exception code to NuttX IRQ */

#define QEMU_RV_IRQ_UART0 (RISCV_IRQ_MEXT + 10)
//// "JH7110 Interrupt Connections" says that Global Interrupts are 0 to 126 (127 total interrupts)
//// https://doc-en.rvspace.org/JH7110/TRM/JH7110_TRM/interrupt_connections.html
#define NR_IRQS (127)

#define NR_IRQS (QEMU_RV_IRQ_UART0 + 1)
////#define QEMU_RV_IRQ_UART0 (RISCV_IRQ_MEXT + 10)

////#define NR_IRQS (QEMU_RV_IRQ_UART0 + 1)

#endif /* __ARCH_RISCV_INCLUDE_QEMU_RV_IRQ_H */

0 comments on commit c03eba3

Please sign in to comment.