mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 06:24:07 +08:00
score: Use _Thread_Get_executing()
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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 ) )
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user