Changeset dcb4daf8 in rtems


Ignore:
Timestamp:
Jun 5, 2013, 9:39:31 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4f5baff
Parents:
17ce103
git-author:
Sebastian Huber <sebastian.huber@…> (06/05/13 09:39:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/07/13 15:02:26)
Message:

score: Simplify _CORE_semaphore_Seize_isr_disable

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/semobtain.c

    r17ce103 rdcb4daf8  
    7171        ((_Options_Is_no_wait( option_set )) ? false : true),
    7272        timeout,
    73         &level
     73        level
    7474      );
    7575      return _Semaphore_Translate_core_semaphore_return_code(
  • cpukit/score/inline/rtems/score/coresem.inl

    r17ce103 rdcb4daf8  
    7171 * @param[in] wait is true if the thread is willing to wait
    7272 * @param[in] timeout is the maximum number of ticks to block
    73  * @param[in] level_p is a temporary variable used to contain the ISR
     73 * @param[in] level is a temporary variable used to contain the ISR
    7474 *        disable level cookie
    7575 *
     
    8181  bool                     wait,
    8282  Watchdog_Interval        timeout,
    83   ISR_Level               *level_p
     83  ISR_Level                level
    8484)
    8585{
     
    9292  if ( the_semaphore->count != 0 ) {
    9393    the_semaphore->count -= 1;
    94     _ISR_Enable( *level_p );
     94    _ISR_Enable( level );
    9595    return;
    9696  }
    9797
    9898  if ( !wait ) {
    99     _ISR_Enable( *level_p );
     99    _ISR_Enable( level );
    100100    executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
    101101    return;
     
    106106  executing->Wait.queue          = &the_semaphore->Wait_queue;
    107107  executing->Wait.id             = id;
    108   _ISR_Enable( *level_p );
     108  _ISR_Enable( level );
    109109
    110110  _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
Note: See TracChangeset for help on using the changeset viewer.