[rtems commit] sp14: Fix for SMP or robust thread dispatch
Sebastian Huber
sebh at rtems.org
Tue Mar 16 13:01:29 UTC 2021
Module: rtems
Branch: master
Commit: 5d752e7b48e47a260c33e33d7717c7421c1eb1f7
Changeset: http://git.rtems.org/rtems/commit/?id=5d752e7b48e47a260c33e33d7717c7421c1eb1f7
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Mar 16 12:15:14 2021 +0100
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 e1b80c7..0765727 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" );
More information about the vc
mailing list