Changes between Version 4 and Version 5 of AtomicOperations
- Timestamp:
- Jun 30, 2009, 8:05:36 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AtomicOperations
v4 v5 27 27 _itmask # enter critical section 28 28 # lock acquisition 29 loop LL Reg1 @ # Reg1 <= M[@]29 loop LL Reg1 @ # Reg1 <= M[@] 30 30 BNE Reg1 loop # continue if lock not taken (Reg1 == 0) 31 31 SC 1 @ # M[@] <= 1 / Reg2 <= KO 32 32 BNE Reg2 loop # retry if not atomic (Reg2 != 0) 33 33 ... 34 ...35 34 # lock release 36 35 SW 0 @ # M[@] <= 0