[PATCH] sp14: Fix for SMP or robust thread dispatch

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Mar 16 11:19:56 UTC 2021


Close #4343.
---
 testsuites/sptests/sp14/task1.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuites/sptests/sp14/task1.c b/testsuites/sptests/sp14/task1.c
index e1b80c71b4..07657272dc 100644
--- a/testsuites/sptests/sp14/task1.c
+++ b/testsuites/sptests/sp14/task1.c
@@ -36,8 +36,13 @@ rtems_task Task_1(
   rtems_mode        previous_mode;
   rtems_status_code status;
 
+#if defined(RTEMS_SMP) || CPU_ENABLE_ROBUST_THREAD_DISPATCH == TRUE
+  puts( "TA1 - rtems_signal_catch - RTEMS_INTERRUPT_LEVEL( 0 )" );
+  status = rtems_signal_catch( Process_asr, RTEMS_INTERRUPT_LEVEL(0) );
+#else
   puts( "TA1 - rtems_signal_catch - RTEMS_INTERRUPT_LEVEL( 3 )" );
   status = rtems_signal_catch( Process_asr, RTEMS_INTERRUPT_LEVEL(3) );
+#endif
   directive_failed( status, "rtems_signal_catch" );
 
   puts( "TA1 - rtems_signal_send - RTEMS_SIGNAL_16 to self" );
-- 
2.26.2



More information about the devel mailing list