Changeset c961c06b in rtems


Ignore:
Timestamp:
Jan 7, 2008, 3:33:33 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
694bd9f
Parents:
a87bbe9
Message:

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

  • 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.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra87bbe9 rc961c06b  
     12008-01-07      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * score/inline/rtems/score/isr.inl: Fix spacing.
     4        * score/src/apimutexallocate.c: Fix spacing.
     5        * score/src/coremsgseize.c: Check for message pending instead of
     6        message pending count to avoid dead code from inlined chain routine.
     7        It checks if the chain is empty so is redundant to count == 0.
     8
    192008-01-07      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • cpukit/score/inline/rtems/score/isr.inl

    ra87bbe9 rc961c06b  
    4646)
    4747{
    48   return ( handler != NULL);
     48  return (handler != NULL);
    4949}
    5050
  • cpukit/score/src/apimutexallocate.c

    ra87bbe9 rc961c06b  
    2323  API_Mutex_Control *mutex;
    2424  CORE_mutex_Attributes attr =  {
    25       CORE_MUTEX_NESTING_IS_ERROR,
    26       FALSE,
    27       CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT,
    28       0
    29     };
     25    CORE_MUTEX_NESTING_IS_ERROR,
     26    FALSE,
     27    CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT,
     28    0
     29  };
    3030
    3131  mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information );
    3232
    33   _CORE_mutex_Initialize(
    34     &mutex->Mutex,
    35     &attr,
    36     CORE_MUTEX_UNLOCKED
    37   );
     33  _CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED );
     34
     35  _Objects_Open( &_API_Mutex_Information, &mutex->Object, (Objects_Name) 1 );
    3836
    3937  *the_mutex = mutex;
  • cpukit/score/src/coremsgseize.c

    ra87bbe9 rc961c06b  
    7777  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
    7878  _ISR_Disable( level );
    79   if ( the_message_queue->number_of_pending_messages != 0 ) {
     79  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
     80  if ( the_message != NULL ) {
    8081    the_message_queue->number_of_pending_messages -= 1;
    81 
    82     the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
    8382    _ISR_Enable( level );
    8483
Note: See TracChangeset for help on using the changeset viewer.