diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 15:10:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 16:17:00 +0200 |
commit | e266d134ebf6f7b7722fffe23c3b4ad142001452 (patch) | |
tree | 7e43e93706be3da460331353b87e58cbb6a9833c /cpukit/rtems | |
parent | score: Rename _Objects_Get_local() (diff) | |
download | rtems-e266d134ebf6f7b7722fffe23c3b4ad142001452.tar.bz2 |
Replace *_Get_interrupt_disable() with *_Get()
Uniformly use *_Get() to get an object by identifier with a lock
context.
Diffstat (limited to 'cpukit/rtems')
28 files changed, 28 insertions, 50 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/messageimpl.h b/cpukit/rtems/include/rtems/rtems/messageimpl.h index 5a12b85846..199af1cacb 100644 --- a/cpukit/rtems/include/rtems/rtems/messageimpl.h +++ b/cpukit/rtems/include/rtems/rtems/messageimpl.h @@ -101,8 +101,7 @@ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); } -RTEMS_INLINE_ROUTINE Message_queue_Control * -_Message_queue_Get_interrupt_disable( +RTEMS_INLINE_ROUTINE Message_queue_Control * _Message_queue_Get( Objects_Id id, ISR_lock_Context *lock_context ) diff --git a/cpukit/rtems/include/rtems/rtems/semimpl.h b/cpukit/rtems/include/rtems/rtems/semimpl.h index 670b4809ed..ac55bc7354 100644 --- a/cpukit/rtems/include/rtems/rtems/semimpl.h +++ b/cpukit/rtems/include/rtems/rtems/semimpl.h @@ -134,7 +134,7 @@ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); } -RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get_interrupt_disable( +RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get( Objects_Id id, ISR_lock_Context *lock_context ) diff --git a/cpukit/rtems/src/eventsend.c b/cpukit/rtems/src/eventsend.c index 087ebb864f..8a159fc7f3 100644 --- a/cpukit/rtems/src/eventsend.c +++ b/cpukit/rtems/src/eventsend.c @@ -31,7 +31,7 @@ rtems_status_code rtems_event_send( RTEMS_API_Control *api; ISR_lock_Context lock_context; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqbroadcast.c b/cpukit/rtems/src/msgqbroadcast.c index 5aab1b1117..3165fad4db 100644 --- a/cpukit/rtems/src/msgqbroadcast.c +++ b/cpukit/rtems/src/msgqbroadcast.c @@ -39,10 +39,7 @@ rtems_status_code rtems_message_queue_broadcast( return RTEMS_INVALID_ADDRESS; } - the_message_queue = _Message_queue_Get_interrupt_disable( - id, - &lock_context - ); + the_message_queue = _Message_queue_Get( id, &lock_context ); if ( the_message_queue == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqdelete.c b/cpukit/rtems/src/msgqdelete.c index 810b74172b..ecf7dab5dd 100644 --- a/cpukit/rtems/src/msgqdelete.c +++ b/cpukit/rtems/src/msgqdelete.c @@ -29,7 +29,7 @@ rtems_status_code rtems_message_queue_delete( ISR_lock_Context lock_context; _Objects_Allocator_lock(); - the_message_queue = _Message_queue_Get_interrupt_disable( id, &lock_context ); + the_message_queue = _Message_queue_Get( id, &lock_context ); if ( the_message_queue == NULL ) { _Objects_Allocator_unlock(); diff --git a/cpukit/rtems/src/msgqflush.c b/cpukit/rtems/src/msgqflush.c index 5cd09b6408..40ffb50d20 100644 --- a/cpukit/rtems/src/msgqflush.c +++ b/cpukit/rtems/src/msgqflush.c @@ -32,10 +32,7 @@ rtems_status_code rtems_message_queue_flush( return RTEMS_INVALID_ADDRESS; } - the_message_queue = _Message_queue_Get_interrupt_disable( - id, - &lock_context - ); + the_message_queue = _Message_queue_Get( id, &lock_context ); if ( the_message_queue == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqgetnumberpending.c b/cpukit/rtems/src/msgqgetnumberpending.c index 6fa0e4f62e..1150e3295a 100644 --- a/cpukit/rtems/src/msgqgetnumberpending.c +++ b/cpukit/rtems/src/msgqgetnumberpending.c @@ -32,10 +32,7 @@ rtems_status_code rtems_message_queue_get_number_pending( return RTEMS_INVALID_ADDRESS; } - the_message_queue = _Message_queue_Get_interrupt_disable( - id, - &lock_context - ); + the_message_queue = _Message_queue_Get( id, &lock_context ); if ( the_message_queue == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c index 2c8b90e3e7..467b9ff64a 100644 --- a/cpukit/rtems/src/msgqreceive.c +++ b/cpukit/rtems/src/msgqreceive.c @@ -47,10 +47,7 @@ rtems_status_code rtems_message_queue_receive( return RTEMS_INVALID_ADDRESS; } - the_message_queue = _Message_queue_Get_interrupt_disable( - id, - &lock_context - ); + the_message_queue = _Message_queue_Get( id, &lock_context ); if ( the_message_queue == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqsend.c b/cpukit/rtems/src/msgqsend.c index af8f3c9706..9c7ee78e35 100644 --- a/cpukit/rtems/src/msgqsend.c +++ b/cpukit/rtems/src/msgqsend.c @@ -34,10 +34,7 @@ rtems_status_code rtems_message_queue_send( return RTEMS_INVALID_ADDRESS; } - the_message_queue = _Message_queue_Get_interrupt_disable( - id, - &lock_context - ); + the_message_queue = _Message_queue_Get( id, &lock_context ); if ( the_message_queue == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/msgqurgent.c b/cpukit/rtems/src/msgqurgent.c index 5220ce845a..eb3b8c2ae8 100644 --- a/cpukit/rtems/src/msgqurgent.c +++ b/cpukit/rtems/src/msgqurgent.c @@ -34,10 +34,7 @@ rtems_status_code rtems_message_queue_urgent( return RTEMS_INVALID_ADDRESS; } - the_message_queue = _Message_queue_Get_interrupt_disable( - id, - &lock_context - ); + the_message_queue = _Message_queue_Get( id, &lock_context ); if ( the_message_queue == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semdelete.c b/cpukit/rtems/src/semdelete.c index 38d4a0e905..ac8f2dd6e3 100644 --- a/cpukit/rtems/src/semdelete.c +++ b/cpukit/rtems/src/semdelete.c @@ -30,7 +30,7 @@ rtems_status_code rtems_semaphore_delete( rtems_attribute attribute_set; _Objects_Allocator_lock(); - the_semaphore = _Semaphore_Get_interrupt_disable( id, &lock_context ); + the_semaphore = _Semaphore_Get( id, &lock_context ); if ( the_semaphore == NULL ) { _Objects_Allocator_unlock(); diff --git a/cpukit/rtems/src/semflush.c b/cpukit/rtems/src/semflush.c index 3b1cdb549d..c6c294c5a2 100644 --- a/cpukit/rtems/src/semflush.c +++ b/cpukit/rtems/src/semflush.c @@ -27,7 +27,7 @@ rtems_status_code rtems_semaphore_flush( rtems_id id ) ISR_lock_Context lock_context; rtems_attribute attribute_set; - the_semaphore = _Semaphore_Get_interrupt_disable( id, &lock_context ); + the_semaphore = _Semaphore_Get( id, &lock_context ); if ( the_semaphore == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c index b3dcd3c96c..8deb85747c 100644 --- a/cpukit/rtems/src/semobtain.c +++ b/cpukit/rtems/src/semobtain.c @@ -45,7 +45,7 @@ rtems_status_code rtems_semaphore_obtain( rtems_attribute attribute_set; bool wait; - the_semaphore = _Semaphore_Get_interrupt_disable( id, &lock_context ); + the_semaphore = _Semaphore_Get( id, &lock_context ); if ( the_semaphore == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semrelease.c b/cpukit/rtems/src/semrelease.c index 2ebf5c07c2..8f82fafa3f 100644 --- a/cpukit/rtems/src/semrelease.c +++ b/cpukit/rtems/src/semrelease.c @@ -32,7 +32,7 @@ rtems_status_code rtems_semaphore_release( rtems_id id ) rtems_attribute attribute_set; ISR_lock_Context lock_context; - the_semaphore = _Semaphore_Get_interrupt_disable( id, &lock_context ); + the_semaphore = _Semaphore_Get( id, &lock_context ); if ( the_semaphore == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/semsetpriority.c b/cpukit/rtems/src/semsetpriority.c index 3c6ad277e4..18fb66ab7f 100644 --- a/cpukit/rtems/src/semsetpriority.c +++ b/cpukit/rtems/src/semsetpriority.c @@ -103,10 +103,7 @@ rtems_status_code rtems_semaphore_set_priority( return RTEMS_INVALID_ID; } - the_semaphore = _Semaphore_Get_interrupt_disable( - semaphore_id, - &lock_context - ); + the_semaphore = _Semaphore_Get( semaphore_id, &lock_context ); if ( the_semaphore == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c index 9be8460d66..777e306afc 100644 --- a/cpukit/rtems/src/signalsend.c +++ b/cpukit/rtems/src/signalsend.c @@ -38,7 +38,7 @@ rtems_status_code rtems_signal_send( return RTEMS_INVALID_NUMBER; } - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/systemeventsend.c b/cpukit/rtems/src/systemeventsend.c index 97bcabd488..978c49b7ac 100644 --- a/cpukit/rtems/src/systemeventsend.c +++ b/cpukit/rtems/src/systemeventsend.c @@ -37,7 +37,7 @@ rtems_status_code rtems_event_system_send( RTEMS_API_Control *api; ISR_lock_Context lock_context; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/taskdelete.c b/cpukit/rtems/src/taskdelete.c index 4f03cbd701..c3ddc77d0a 100644 --- a/cpukit/rtems/src/taskdelete.c +++ b/cpukit/rtems/src/taskdelete.c @@ -30,7 +30,7 @@ rtems_status_code rtems_task_delete( Thread_Control *executing; Per_CPU_Control *cpu_self; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/taskgetaffinity.c b/cpukit/rtems/src/taskgetaffinity.c index 27c21db80b..b24966d047 100644 --- a/cpukit/rtems/src/taskgetaffinity.c +++ b/cpukit/rtems/src/taskgetaffinity.c @@ -40,7 +40,7 @@ rtems_status_code rtems_task_get_affinity( return RTEMS_INVALID_ADDRESS; } - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/taskgetscheduler.c b/cpukit/rtems/src/taskgetscheduler.c index 9d8bbb6c41..869e0f540b 100644 --- a/cpukit/rtems/src/taskgetscheduler.c +++ b/cpukit/rtems/src/taskgetscheduler.c @@ -32,7 +32,7 @@ rtems_status_code rtems_task_get_scheduler( return RTEMS_INVALID_ADDRESS; } - the_thread = _Thread_Get_interrupt_disable( task_id, &lock_context ); + the_thread = _Thread_Get( task_id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/taskissuspended.c b/cpukit/rtems/src/taskissuspended.c index 467281dfca..b6730def20 100644 --- a/cpukit/rtems/src/taskissuspended.c +++ b/cpukit/rtems/src/taskissuspended.c @@ -27,7 +27,7 @@ rtems_status_code rtems_task_is_suspended( rtems_id id ) ISR_lock_Context lock_context; States_Control current_state; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/taskrestart.c b/cpukit/rtems/src/taskrestart.c index 6e4ad96545..9070fe4d0d 100644 --- a/cpukit/rtems/src/taskrestart.c +++ b/cpukit/rtems/src/taskrestart.c @@ -31,7 +31,7 @@ rtems_status_code rtems_task_restart( Thread_Entry_information entry; bool ok; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/taskresume.c b/cpukit/rtems/src/taskresume.c index 1bdf421543..e36c8b0591 100644 --- a/cpukit/rtems/src/taskresume.c +++ b/cpukit/rtems/src/taskresume.c @@ -30,7 +30,7 @@ rtems_status_code rtems_task_resume( Per_CPU_Control *cpu_self; States_Control previous_state; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/tasksetaffinity.c b/cpukit/rtems/src/tasksetaffinity.c index 6389e4c795..6caf8620a3 100644 --- a/cpukit/rtems/src/tasksetaffinity.c +++ b/cpukit/rtems/src/tasksetaffinity.c @@ -40,7 +40,7 @@ rtems_status_code rtems_task_set_affinity( return RTEMS_INVALID_ADDRESS; } - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c index d343935cf4..32a77f77ba 100644 --- a/cpukit/rtems/src/tasksetpriority.c +++ b/cpukit/rtems/src/tasksetpriority.c @@ -38,7 +38,7 @@ rtems_status_code rtems_task_set_priority( if ( !old_priority ) return RTEMS_INVALID_ADDRESS; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/tasksetscheduler.c b/cpukit/rtems/src/tasksetscheduler.c index 428ef3dd9d..36fb46d629 100644 --- a/cpukit/rtems/src/tasksetscheduler.c +++ b/cpukit/rtems/src/tasksetscheduler.c @@ -36,7 +36,7 @@ rtems_status_code rtems_task_set_scheduler( return RTEMS_INVALID_ID; } - the_thread = _Thread_Get_interrupt_disable( task_id, &lock_context ); + the_thread = _Thread_Get( task_id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/taskstart.c b/cpukit/rtems/src/taskstart.c index 172979bde3..4b1ceb8a01 100644 --- a/cpukit/rtems/src/taskstart.c +++ b/cpukit/rtems/src/taskstart.c @@ -40,7 +40,7 @@ rtems_status_code rtems_task_start( ISR_lock_Context lock_context; bool ok; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/rtems/src/tasksuspend.c b/cpukit/rtems/src/tasksuspend.c index bd9b89a2af..230a1e00b3 100644 --- a/cpukit/rtems/src/tasksuspend.c +++ b/cpukit/rtems/src/tasksuspend.c @@ -30,7 +30,7 @@ rtems_status_code rtems_task_suspend( Per_CPU_Control *cpu_self; States_Control previous_state; - the_thread = _Thread_Get_interrupt_disable( id, &lock_context ); + the_thread = _Thread_Get( id, &lock_context ); if ( the_thread == NULL ) { #if defined(RTEMS_MULTIPROCESSING) |