From c03eba3b8a67d1a028eefb71771eca6f2958d543 Mon Sep 17 00:00:00 2001 From: Lee Lup Yuen Date: Fri, 28 Jul 2023 15:52:17 +0800 Subject: [PATCH] Extend to 127 IRQs --- arch/risc-v/include/qemu-rv/irq.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/risc-v/include/qemu-rv/irq.h b/arch/risc-v/include/qemu-rv/irq.h index 833633909eeaf..a12e8781a5616 100644 --- a/arch/risc-v/include/qemu-rv/irq.h +++ b/arch/risc-v/include/qemu-rv/irq.h @@ -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 */