summaryrefslogtreecommitdiffstats
path: root/bsps/riscv/griscv/irq/irq.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-27 09:58:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-27 10:03:19 +0200
commitc7b4eca7fa3e311c67d5dd1e62e301b01ed45271 (patch)
tree8580e41fd1bac88af64654bde7d4bf0b340ce173 /bsps/riscv/griscv/irq/irq.c
parentvalidation: Test rtems_interrupt_handler_iterate() (diff)
downloadrtems-c7b4eca7fa3e311c67d5dd1e62e301b01ed45271.tar.bz2
bsps/irq: bsp_interrupt_facility_initialize()
Do not return a status code in bsp_interrupt_facility_initialize() since this leads to unreachable code in bsp_interrupt_initialize(). Use RTEMS_DEBUG assertions in bsp_interrupt_facility_initialize() if necessary.
Diffstat (limited to 'bsps/riscv/griscv/irq/irq.c')
-rw-r--r--bsps/riscv/griscv/irq/irq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bsps/riscv/griscv/irq/irq.c b/bsps/riscv/griscv/irq/irq.c
index 3f1c75dc8e..ea19797565 100644
--- a/bsps/riscv/griscv/irq/irq.c
+++ b/bsps/riscv/griscv/irq/irq.c
@@ -75,7 +75,7 @@ void _RISCV_Interrupt_dispatch(uintptr_t mcause, Per_CPU_Control *cpu_self)
}
}
-rtems_status_code bsp_interrupt_facility_initialize(void)
+void bsp_interrupt_facility_initialize(void)
{
/*
@@ -83,8 +83,6 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
* bsp_start_on_secondary_processor().
*/
set_csr(mie, MIP_MEIP);
-
- return RTEMS_SUCCESSFUL;
}
rtems_status_code bsp_interrupt_get_attributes(