Changes between Version 4 and Version 5 of AtomicOperations


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

--

Legend:

Unmodified
Added
Removed
Modified
  • AtomicOperations

    v4 v5  
    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
    3232                        BNE Reg2 loop   # retry if not atomic (Reg2 != 0)
    3333                        ...
    34                 ...
    3534# lock release
    3635                        SW 0 @                  # M[@] <= 0