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

Kinsey Moore kinsey.moore at oarcorp.com
Tue Mar 16 12:21:30 UTC 2021


This fixes the issues on AArch64 and ARM, thanks!

Kinsey

-----Original Message-----
From: devel <devel-bounces at rtems.org> On Behalf Of Sebastian Huber
Sent: Tuesday, March 16, 2021 06:20
To: devel at rtems.org
Subject: [PATCH] sp14: Fix for SMP or robust thread dispatch

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

_______________________________________________
devel mailing list
devel at rtems.org
http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list