riscv: use MAX_IRQ instead of PLIC_MAX_NUM_INT

Signed-off-by: Axel Heider <axelheider@gmx.de>
This commit is contained in:
Axel Heider
2023-11-17 21:54:01 +01:00
committed by Indan Zupancic
parent a2cb6d0271
commit b59fa0ed20
10 changed files with 20 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ set_property(
if(DEFINED CALLED_declare_default_headers)
# calculate the irq cnode size based on MAX_NUM_IRQ
if("${KernelArch}" STREQUAL "riscv")
math(EXPR MAX_NUM_IRQ "${CONFIGURE_PLIC_MAX_NUM_INT} + 2")
math(EXPR MAX_NUM_IRQ "${CONFIGURE_MAX_IRQ} + 2")
else()
if(
DEFINED KernelMaxNumNodes