summaryrefslogtreecommitdiffstats
path: root/bsps/riscv
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-23 14:56:31 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-24 09:56:53 +0100
commit10ee41a8a37ac5e8d3537cb1c7d98b647903b97c (patch)
tree1cc4168c02e2b963109393582af0cbb522dc5eda /bsps/riscv
parentscore: Clarify code block (diff)
downloadrtems-10ee41a8a37ac5e8d3537cb1c7d98b647903b97c.tar.bz2
tm27: Avoid function pointer casts
Add TM27_USE_VECTOR_HANDLER to select the interrupt handler type used by the <tm27.h> implementation. Close #4820.
Diffstat (limited to 'bsps/riscv')
-rw-r--r--bsps/riscv/riscv/include/tm27.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/bsps/riscv/riscv/include/tm27.h b/bsps/riscv/riscv/include/tm27.h
index 1226fc8667..9fe6bcd255 100644
--- a/bsps/riscv/riscv/include/tm27.h
+++ b/bsps/riscv/riscv/include/tm27.h
@@ -52,9 +52,7 @@ static bool riscv_tm27_can_use_mtime;
static rtems_interrupt_entry riscv_tm27_interrupt_entry;
-static inline void Install_tm27_vector(
- void ( *handler )( rtems_vector_number )
-)
+static inline void Install_tm27_vector( rtems_interrupt_handler handler )
{
rtems_vector_number irq;
bool enabled;
@@ -71,7 +69,7 @@ static inline void Install_tm27_vector(
rtems_interrupt_entry_initialize(
&riscv_tm27_interrupt_entry,
- (rtems_interrupt_handler) handler,
+ handler,
NULL,
"tm27"
);