diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-04 13:00:00 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-06 09:43:59 +0100 |
commit | b323e1fb4129bf66e60c1c2cc034e22a88bed320 (patch) | |
tree | 2a765d4abeb539f22f1f73c736a92e2939cc539f | |
parent | rtems: Add RTEMS_INTERRUPT_REPLACE (diff) | |
download | rtems-b323e1fb4129bf66e60c1c2cc034e22a88bed320.tar.bz2 |
tmtests/tm26: Fix deadlock for SMP configurations
Some _Context_Switch() invocations end up in _Thread_Handler(). Create
the right context for this function.
-rw-r--r-- | 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 e68dc6d4c2..416e5f7ef7 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; |