summaryrefslogtreecommitdiffstats
path: root/testsuites/validation
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 /testsuites/validation
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 'testsuites/validation')
-rw-r--r--testsuites/validation/tx-call-within-isr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/testsuites/validation/tx-call-within-isr.c b/testsuites/validation/tx-call-within-isr.c
index 0767f96edf..91560b70b0 100644
--- a/testsuites/validation/tx-call-within-isr.c
+++ b/testsuites/validation/tx-call-within-isr.c
@@ -76,11 +76,15 @@ void CallWithinISRClear( void )
Clear_tm27_intr();
}
-static void CallWithinISRHandler( rtems_vector_number vector )
+#ifdef TM27_USE_VECTOR_HANDLER
+static rtems_isr CallWithinISRHandler( rtems_vector_number arg )
+#else
+static void CallWithinISRHandler( void *arg )
+#endif
{
CallWithinISRContext *ctx;
- (void) vector;
+ (void) arg;
ctx = &CallWithinISRInstance;
CallWithinISRClear();
@@ -148,7 +152,7 @@ static void CallWithinISRIsHandlerInstalled(
(void) option;
(void) handler_arg;
- if ( handler == (rtems_interrupt_handler) CallWithinISRHandler ) {
+ if ( handler == CallWithinISRHandler ) {
*(bool *) arg = true;
}
}