mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 15:39:19 +08:00
2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/task1.c, sp34/changepri.c, sp35/priinv.c: Add rtems_task_self() directive instead of violating RTEMS internals.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* sp07/task1.c, sp34/changepri.c, sp35/priinv.c: Add rtems_task_self()
|
||||
directive instead of violating RTEMS internals.
|
||||
|
||||
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* sp07/init.c, sp07/system.h, sp07/tdelete.c, sp07/sp07.scn:
|
||||
|
||||
@@ -29,8 +29,7 @@ rtems_task Task_1(
|
||||
rtems_task_priority previous_priority;
|
||||
rtems_id my_id;
|
||||
|
||||
/* XXX really need a Classic API service for this */
|
||||
my_id = _Thread_Executing->Object.id;
|
||||
my_id = rtems_task_self();
|
||||
|
||||
rtems_test_pause();
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ const char *CallerName()
|
||||
static char buffer[32];
|
||||
#if defined(TEST_PRINT_TASK_ID)
|
||||
sprintf( buffer, "0x%08x -- %d",
|
||||
_Thread_Executing->Object.id, _Thread_Executing->current_priority );
|
||||
rtems_task_self(), _Thread_Executing->current_priority );
|
||||
#else
|
||||
union {
|
||||
uint32_t u;
|
||||
|
||||
@@ -74,7 +74,7 @@ const char *CallerName()
|
||||
static char buffer[32];
|
||||
#if defined(TEST_PRINT_TASK_ID)
|
||||
sprintf( buffer, "0x%08x -- %d",
|
||||
_Thread_Executing->Object.id, _Thread_Executing->current_priority );
|
||||
rtems_task_self(), _Thread_Executing->current_priority );
|
||||
#else
|
||||
union {
|
||||
uint32_t u;
|
||||
|
||||
Reference in New Issue
Block a user