summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/gen83xx/include/tm27.h
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/powerpc/gen83xx/include/tm27.h
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/powerpc/gen83xx/include/tm27.h')
-rw-r--r--bsps/powerpc/gen83xx/include/tm27.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsps/powerpc/gen83xx/include/tm27.h b/bsps/powerpc/gen83xx/include/tm27.h
index cb0c900066..37adc7df98 100644
--- a/bsps/powerpc/gen83xx/include/tm27.h
+++ b/bsps/powerpc/gen83xx/include/tm27.h
@@ -42,16 +42,16 @@
#define MUST_WAIT_FOR_INTERRUPT 1
-static void (*tm27_interrupt_handler)(rtems_vector_number);
+static rtems_interrupt_handler tm27_interrupt_handler;
static int tm27_exception_handler( BSP_Exception_frame *frame, unsigned number)
{
- (*tm27_interrupt_handler)( 0);
+ (*tm27_interrupt_handler)( NULL);
return 0;
}
-static void Install_tm27_vector( void (*handler)(rtems_vector_number))
+static inline void Install_tm27_vector( rtems_interrupt_handler handler )
{
int rv = 0;