From b323e1fb4129bf66e60c1c2cc034e22a88bed320 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 4 Mar 2014 13:00:00 +0100 Subject: 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 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testsuites/tmtests/tm26/task1.c') 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; -- cgit v1.2.3