forked from Imagelibrary/rtems
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:
@@ -212,7 +212,7 @@ uint32_t riscv_get_core_frequency(void)
|
|||||||
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
|
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
|
||||||
{
|
{
|
||||||
(void) icells;
|
(void) icells;
|
||||||
return intr[0];
|
return RISCV_INTERRUPT_VECTOR_EXTERNAL(intr[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bsp_start(void)
|
void bsp_start(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user