[rtems commit] score: Use _Thread_Get_executing()

Sebastian Huber sebh at rtems.org
Mon Jul 22 14:51:42 UTC 2013


Module:    rtems
Branch:    master
Commit:    02f73d487eb585255795be492e148a306fcf8e77
Changeset: http://git.rtems.org/rtems/commit/?id=02f73d487eb585255795be492e148a306fcf8e77

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jul 18 12:43:49 2013 +0200

score: Use _Thread_Get_executing()

---

 cpukit/score/src/heap.c                  |    2 +-
 cpukit/score/src/heapfree.c              |    2 +-
 cpukit/score/src/objectgetnameasstring.c |    2 +-
 cpukit/score/src/objectidtoname.c        |    2 +-
 cpukit/score/src/userextiterate.c        |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c
index 30779eb..89dcd34 100644
--- a/cpukit/score/src/heap.c
+++ b/cpukit/score/src/heap.c
@@ -132,7 +132,7 @@ static uint32_t instance = 0;
     block->Protection_begin.protector [0] = HEAP_BEGIN_PROTECTOR_0;
     block->Protection_begin.protector [1] = HEAP_BEGIN_PROTECTOR_1;
     block->Protection_begin.next_delayed_free_block = NULL;
-    block->Protection_begin.task = _Thread_Executing;
+    block->Protection_begin.task = _Thread_Get_executing();
     block->Protection_begin.tag = NULL;
     block->Protection_end.protector [0] = HEAP_END_PROTECTOR_0;
     block->Protection_end.protector [1] = HEAP_END_PROTECTOR_1;
diff --git a/cpukit/score/src/heapfree.c b/cpukit/score/src/heapfree.c
index 7ff1363..bd85cad 100644
--- a/cpukit/score/src/heapfree.c
+++ b/cpukit/score/src/heapfree.c
@@ -39,7 +39,7 @@
     uintptr_t *current = NULL;
 
     block->Protection_begin.next_delayed_free_block = block;
-    block->Protection_begin.task = _Thread_Executing;
+    block->Protection_begin.task = _Thread_Get_executing();
 
     if ( delayed_free_block_count > 0 ) {
       Heap_Block *const last = heap->Protection.last_delayed_free_block;
diff --git a/cpukit/score/src/objectgetnameasstring.c b/cpukit/score/src/objectgetnameasstring.c
index ceb6c43..5e1ac0f 100644
--- a/cpukit/score/src/objectgetnameasstring.c
+++ b/cpukit/score/src/objectgetnameasstring.c
@@ -53,7 +53,7 @@ char *_Objects_Get_name_as_string(
   if ( name == NULL )
     return NULL;
 
-  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
+  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Get_executing()->Object.id : id;
 
   information = _Objects_Get_information_id( tmpId );
   if ( !information )
diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c
index d3f05e3..db739d8 100644
--- a/cpukit/score/src/objectidtoname.c
+++ b/cpukit/score/src/objectidtoname.c
@@ -38,7 +38,7 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
    *  Caller is trusted for name != NULL.
    */
 
-  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
+  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Get_executing()->Object.id : id;
 
   the_api = _Objects_Get_API( tmpId );
   if ( !_Objects_Is_api_valid( the_api ) )
diff --git a/cpukit/score/src/userextiterate.c b/cpukit/score/src/userextiterate.c
index 299116b..722f574 100644
--- a/cpukit/score/src/userextiterate.c
+++ b/cpukit/score/src/userextiterate.c
@@ -129,7 +129,7 @@ void _User_extensions_Iterate(
   User_extensions_Visitor  visitor
 )
 {
-  Thread_Control   *executing = _Thread_Executing;
+  Thread_Control *executing = _Thread_Get_executing();
   const User_extensions_Table *callouts_current =
     rtems_configuration_get_user_extension_table();
   const User_extensions_Table *callouts_end =




More information about the vc mailing list