Changeset 2b7fe356 in rtems


Ignore:
Timestamp:
Feb 26, 2015, 9:29:02 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b99be6e
Parents:
c5436ff4
git-author:
Sebastian Huber <sebastian.huber@…> (02/26/15 09:29:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/04/15 11:02:50)
Message:

score: Add parameter to Giant acquire/release

Update #2273.

Location:
cpukit/score
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/threaddispatch.h

    rc5436ff4 r2b7fe356  
    9898   * _Thread_Dispatch_increment_disable_level().
    9999   *
    100    * Thread dispatching must be disabled before this lock can be acquired.
    101    */
    102   void _Giant_Acquire( void );
     100   * Thread dispatching must be disabled before the Giant lock can be acquired
     101   * and must no be enabled while owning the Giant lock.  The thread dispatch
     102   * disable level is not altered by this function.
     103   *
     104   * @param[in] cpu_self The current processor.
     105   */
     106  void _Giant_Acquire( Per_CPU_Control *cpu_self );
    103107
    104108  /**
     
    107111   * This lock is implicitly released in
    108112   * _Thread_Dispatch_decrement_disable_level().
    109    */
    110   void _Giant_Release( void );
     113   *
     114   * The thread dispatch disable level is not altered by this function.
     115   *
     116   * @param[in] cpu_self The current processor.
     117   */
     118  void _Giant_Release( Per_CPU_Control *cpu_self );
    111119
    112120  /**
     
    117125   * The only use case for this operation is in _SMP_Request_shutdown().
    118126   *
    119    * @param[in] self_cpu The current processor.
    120    */
    121   void _Giant_Drop( Per_CPU_Control *self_cpu );
     127   * @param[in] cpu_self The current processor.
     128   */
     129  void _Giant_Drop( Per_CPU_Control *cpu_self );
    122130
    123131  /**
  • cpukit/score/include/rtems/score/threadimpl.h

    rc5436ff4 r2b7fe356  
    559559  ISR_Level level;
    560560
    561   _Giant_Release();
     561  _Giant_Release( _Per_CPU_Get() );
    562562
    563563  _ISR_Disable_without_giant( level );
  • cpukit/score/src/threaddispatchdisablelevel.c

    rc5436ff4 r2b7fe356  
    120120}
    121121
    122 void _Giant_Acquire( void )
     122void _Giant_Acquire( Per_CPU_Control *cpu_self )
    123123{
    124124  ISR_Level isr_level;
     
    126126  _ISR_Disable_without_giant( isr_level );
    127127  _Assert( _Thread_Dispatch_disable_level != 0 );
    128   _Giant_Do_acquire( _Per_CPU_Get() );
     128  _Giant_Do_acquire( cpu_self );
    129129  _ISR_Enable_without_giant( isr_level );
    130130}
    131131
    132 void _Giant_Release( void )
     132void _Giant_Release( Per_CPU_Control *cpu_self )
    133133{
    134134  ISR_Level isr_level;
     
    136136  _ISR_Disable_without_giant( isr_level );
    137137  _Assert( _Thread_Dispatch_disable_level != 0 );
    138   _Giant_Do_release( _Per_CPU_Get() );
     138  _Giant_Do_release( cpu_self );
    139139  _ISR_Enable_without_giant( isr_level );
    140140}
Note: See TracChangeset for help on using the changeset viewer.