bsps/riscv: Fix bsp_fdt_map_intr()

The interrupt numbers in the device tree are usually PLIC interrupts.  Map the
number to the vector number associated with an external interrupt.
This commit is contained in:
Sebastian Huber
2022-11-23 07:27:48 +01:00
parent 8425e679c1
commit 5756a6af10

View File

@@ -212,7 +212,7 @@ uint32_t riscv_get_core_frequency(void)
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
{
(void) icells;
return intr[0];
return RISCV_INTERRUPT_VECTOR_EXTERNAL(intr[0]);
}
void bsp_start(void)