summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp35/priinv.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sp35/priinv.c')
-rw-r--r--testsuites/sptests/sp35/priinv.c9
1 files changed, 5 insertions, 4 deletions
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;