Changes between Version 5 and Version 6 of AtomicOperations


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

--

Legend:

Unmodified
Added
Removed
Modified
  • AtomicOperations

    v5 v6  
    2828# lock acquisition
    2929loop                    LL Reg1 @               # Reg1 <= M[@]
    30                         BNE Reg1 loop   # continue if lock not taken (Reg1 == 0)
     30                        BNE Reg1 loop           # continue if lock not taken (Reg1 == 0)
    3131                        SC  1 @                 # M[@] <= 1 / Reg2 <= KO
    32                         BNE Reg2 loop   # retry if not atomic (Reg2 != 0)
     32                        BNE Reg2 loop           # retry if not atomic (Reg2 != 0)
    3333                        ...
    3434# lock release