Changes between Version 3 and Version 4 of AtomicOperations


Ignore:
Timestamp:
Jun 30, 2009, 8:04:05 PM (15 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AtomicOperations

    v3 v4  
    2727                        _itmask                 # enter critical section
    2828# lock acquisition
    29 loop            LL Reg1 @               # Reg1 <= M[@]
     29loop                   LL Reg1 @                # Reg1 <= M[@]
    3030                        BNE Reg1 loop   # continue if lock not taken (Reg1 == 0)
    3131                        SC  1 @                 # M[@] <= 1 / Reg2 <= KO