From d7ce33f17ed3259c7864f25bdb49eaf9774464bf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 22 Jul 2013 09:16:58 +0200 Subject: testsuites: Use _Thread_Get_executing() --- testsuites/sptests/sp35/priinv.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testsuites/sptests/sp35') diff --git a/testsuites/sptests/sp35/priinv.c b/testsuites/sptests/sp35/priinv.c index 24c41d5ea7..ba74c69ebe 100644 --- a/testsuites/sptests/sp35/priinv.c +++ b/testsuites/sptests/sp35/priinv.c @@ -81,9 +81,10 @@ void AccessRemoteHw(void); const char *CallerName(void) { static char buffer[32]; + Thread_Control *executing = _Thread_Get_executing(); #if defined(TEST_PRINT_TASK_ID) sprintf( buffer, "0x%08x -- %d", - rtems_task_self(), _Thread_Executing->current_priority ); + rtems_task_self(), executing->current_priority ); #else volatile union { uint32_t u; @@ -91,13 +92,13 @@ const char *CallerName(void) } TempName; #if defined(TEST_ON_RTEMS_45) - TempName.u = *(uint32_t *)_Thread_Executing->Object.name; + TempName.u = *(uint32_t *)executing->Object.name; #else - TempName.u = (uint32_t) _Thread_Executing->Object.name.name_u32; + TempName.u = (uint32_t) executing->Object.name.name_u32; #endif sprintf( buffer, "%c%c%c%c -- %" PRIdPriority_Control, TempName.c[0], TempName.c[1], TempName.c[2], TempName.c[3], - _Thread_Executing->current_priority + executing->current_priority ); #endif return buffer; -- cgit v1.2.3