Changeset df244cfc in rtems


Ignore:
Timestamp:
Jun 12, 2013, 7:16:30 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
aabfcd0
Parents:
a8ef3bf0
git-author:
Sebastian Huber <sebastian.huber@…> (06/12/13 07:16:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/12/13 14:12:53)
Message:

smp: Protect decrement operation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threaddispatchdisablelevel.c

    ra8ef3bf0 rdf244cfc  
    8989  _ISR_Disable_on_this_core( isr_level );
    9090
     91  disable_level = _Thread_Dispatch_disable_level;
     92  --disable_level;
     93  _Thread_Dispatch_disable_level = disable_level;
     94
    9195  --level_lock->nest_level;
    9296  if ( level_lock->nest_level == 0 ) {
     
    9498    _SMP_lock_Release( &level_lock->lock );
    9599  }
    96 
    97   disable_level = _Thread_Dispatch_disable_level;
    98   --disable_level;
    99   _Thread_Dispatch_disable_level = disable_level;
    100100
    101101  _ISR_Enable_on_this_core( isr_level );
Note: See TracChangeset for help on using the changeset viewer.