2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>

* score/inline/rtems/score/isr.inl: Fix spacing.
	* score/src/apimutexallocate.c: Fix spacing.
	* score/src/coremsgseize.c: Check for message pending instead of
	message pending count to avoid dead code from inlined chain routine.
	It checks if the chain is empty so is redundant to count == 0.
This commit is contained in:
Joel Sherrill
2008-01-07 15:33:33 +00:00
parent a87bbe9bb7
commit c961c06bbe
4 changed files with 19 additions and 14 deletions
+8
View File
@@ -1,3 +1,11 @@
2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/isr.inl: Fix spacing.
* score/src/apimutexallocate.c: Fix spacing.
* score/src/coremsgseize.c: Check for message pending instead of
message pending count to avoid dead code from inlined chain routine.
It checks if the chain is empty so is redundant to count == 0.
2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/eventseize.c, rtems/src/eventtimeout.c: Minor style clean
+1 -1
View File
@@ -45,7 +45,7 @@ RTEMS_INLINE_ROUTINE boolean _ISR_Is_valid_user_handler (
void *handler
)
{
return ( handler != NULL);
return (handler != NULL);
}
/**@}*/
+8 -10
View File
@@ -22,19 +22,17 @@ void _API_Mutex_Allocate(
{
API_Mutex_Control *mutex;
CORE_mutex_Attributes attr = {
CORE_MUTEX_NESTING_IS_ERROR,
FALSE,
CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT,
0
};
CORE_MUTEX_NESTING_IS_ERROR,
FALSE,
CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT,
0
};
mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information );
_CORE_mutex_Initialize(
&mutex->Mutex,
&attr,
CORE_MUTEX_UNLOCKED
);
_CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED );
_Objects_Open( &_API_Mutex_Information, &mutex->Object, (Objects_Name) 1 );
*the_mutex = mutex;
}
+2 -3
View File
@@ -76,10 +76,9 @@ void _CORE_message_queue_Seize(
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
_ISR_Disable( level );
if ( the_message_queue->number_of_pending_messages != 0 ) {
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
the_message_queue->number_of_pending_messages -= 1;
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
_ISR_Enable( level );
*size = the_message->Contents.size;