summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpmigration02/init.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/smptests/smpmigration02/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/smptests/smpmigration02/init.c b/testsuites/smptests/smpmigration02/init.c
index 9af7752eac..40ac8ffa38 100644
--- a/testsuites/smptests/smpmigration02/init.c
+++ b/testsuites/smptests/smpmigration02/init.c
@@ -118,12 +118,12 @@ static void busy_loop_task(rtems_task_argument arg)
static Thread_Control *get_thread_by_id(rtems_id task_id)
{
- Objects_Locations location;
+ ISR_lock_Context lock_context;
Thread_Control *thread;
- thread = _Thread_Get(task_id, &location);
- rtems_test_assert(location == OBJECTS_LOCAL);
- _Thread_Enable_dispatch();
+ thread = _Thread_Get_interrupt_disable(task_id, &lock_context);
+ rtems_test_assert(thread != NULL);
+ _ISR_lock_ISR_enable(&lock_context);
return thread;
}