diff options
-rw-r--r-- | cpukit/configure.ac | 2 | ||||
-rw-r--r-- | cpukit/rtems/src/semtranslatereturncode.c | 2 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/coremutex.h | 6 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 2 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/coremutex.inl | 2 | ||||
-rw-r--r-- | cpukit/score/src/coremutex.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/coremutexsurrender.c | 10 | ||||
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 2 |
8 files changed, 14 insertions, 14 deletions
diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 3b3d9d6861..1e0b6ac6cb 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -221,7 +221,7 @@ RTEMS_CPUOPT([__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__], [disable inlining _Thread_Enable_dispatch]) ## This gives the same behavior as 4.8 and older -RTEMS_CPUOPT([__STRICT_ORDER_MUTEX__], +RTEMS_CPUOPT([__RTEMS_STRICT_ORDER_MUTEX__], [test x"${ENABLE_STRICT_ORDER_MUTEX}" = x"1"], [1], [disable strict order mutex]) diff --git a/cpukit/rtems/src/semtranslatereturncode.c b/cpukit/rtems/src/semtranslatereturncode.c index 5bbb0ef1fe..94cbbab726 100644 --- a/cpukit/rtems/src/semtranslatereturncode.c +++ b/cpukit/rtems/src/semtranslatereturncode.c @@ -68,7 +68,7 @@ const rtems_status_code _Semaphore_Translate_core_mutex_return_code_[] = { RTEMS_NOT_OWNER_OF_RESOURCE, /* CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE */ RTEMS_OBJECT_WAS_DELETED, /* CORE_MUTEX_WAS_DELETED */ RTEMS_TIMEOUT, /* CORE_MUTEX_TIMEOUT */ -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ CORE_MUTEX_RELEASE_NOT_ORDER, #endif RTEMS_INTERNAL_ERROR /* CORE_MUTEX_STATUS_CEILING_VIOLATED */ diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h index cf46e9265c..cc059fa61d 100644 --- a/cpukit/score/include/rtems/score/coremutex.h +++ b/cpukit/score/include/rtems/score/coremutex.h @@ -104,7 +104,7 @@ typedef enum { */ CORE_MUTEX_TIMEOUT, -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /** This status indicates that a thread not release the mutex which has * the priority inheritance property in a right order. */ @@ -193,7 +193,7 @@ typedef struct { Priority_Control priority_ceiling; } CORE_mutex_Attributes; -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /*@beief Core Mutex Lock_Chain Struct * * The following defines the control block used to manage lock chain of @@ -242,7 +242,7 @@ typedef struct { Thread_Control *holder; /** This element contains the object Id of the holding thread. */ Objects_Id holder_id; -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /** This field is used to manipulate the priority inheritance mutex queue*/ CORE_mutex_order_list queue; #endif diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index fcfac01026..3952d183c8 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -316,7 +316,7 @@ struct Thread_Control_struct { /** This field is the received response packet in an MP system. */ MP_packet_Prefix *receive_packet; #endif -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /**This field is the head of queue of priority inheritance mutex holed by the thread*/ Chain_Control lock_mutex; #endif diff --git a/cpukit/score/inline/rtems/score/coremutex.inl b/cpukit/score/inline/rtems/score/coremutex.inl index 8d417568e9..ccfc411799 100644 --- a/cpukit/score/inline/rtems/score/coremutex.inl +++ b/cpukit/score/inline/rtems/score/coremutex.inl @@ -140,7 +140,7 @@ RTEMS_INLINE_ROUTINE int _CORE_mutex_Seize_interrupt_trylock_body( if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ){ -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c index f6e6c80177..6e23561f19 100644 --- a/cpukit/score/src/coremutex.c +++ b/cpukit/score/src/coremutex.c @@ -65,7 +65,7 @@ void _CORE_mutex_Initialize( if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; diff --git a/cpukit/score/src/coremutexsurrender.c b/cpukit/score/src/coremutexsurrender.c index 29b246983f..47ca7de8db 100644 --- a/cpukit/score/src/coremutexsurrender.c +++ b/cpukit/score/src/coremutexsurrender.c @@ -54,7 +54,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( { Thread_Control *the_thread; Thread_Control *holder; -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ Chain_Node *first_node; #endif holder = the_mutex->holder; @@ -98,7 +98,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ){ -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /*Check whether the holder release the mutex in LIFO order if not return error code*/ if(holder->lock_mutex.first != &the_mutex->queue.lock_queue){ @@ -119,7 +119,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ if(the_mutex->queue.priority_before != holder->current_priority) _Thread_Change_priority(holder,the_mutex->queue.priority_before,TRUE); #endif @@ -157,14 +157,14 @@ CORE_mutex_Status _CORE_mutex_Surrender( case CORE_MUTEX_DISCIPLINES_PRIORITY: break; case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index eb4df83e50..267d8f60cc 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -123,7 +123,7 @@ boolean _Thread_Initialize( */ _Watchdog_Initialize( &the_thread->Timer, NULL, 0, NULL ); -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /*Initialize the head of chain of mutex */ _Chain_Initialize_empty(&the_thread->lock_mutex); #endif |