[rtems commit] tmtests/tm26: Fix deadlock for SMP configurations

Sebastian Huber sebh at rtems.org
Thu Mar 6 08:39:32 UTC 2014


Module:    rtems
Branch:    master
Commit:    b323e1fb4129bf66e60c1c2cc034e22a88bed320
Changeset: http://git.rtems.org/rtems/commit/?id=b323e1fb4129bf66e60c1c2cc034e22a88bed320

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar  4 13:00:00 2014 +0100

tmtests/tm26: Fix deadlock for SMP configurations

Some _Context_Switch() invocations end up in _Thread_Handler().  Create
the right context for this function.

---

 testsuites/tmtests/tm26/task1.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c
index e68dc6d..416e5f7 100644
--- a/testsuites/tmtests/tm26/task1.c
+++ b/testsuites/tmtests/tm26/task1.c
@@ -133,7 +133,8 @@ static void set_thread_executing( Thread_Control *thread )
 
 static void thread_disable_dispatch( void )
 {
-#if defined( PREVENT_SMP_ASSERT_FAILURES )
+/* Yes, RTEMS_SMP and not PREVENT_SMP_ASSERT_FAILURES */
+#if defined( RTEMS_SMP )
   Per_CPU_Control *self_cpu;
   ISR_Level level;
 




More information about the vc mailing list