meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arm:exclusive_monitor [2024/06/05 09:40] – created niziakarm:exclusive_monitor [2024/06/05 15:43] (current) niziak
Line 12: Line 12:
  
 Exclusive instructions must be used in **pairs**: Exclusive instructions must be used in **pairs**:
-  * LDREX - tags memory for exclusive access. Always successfully reads a value from memory address x. +  * LDREX
-  * STREX - clears tagged memory for exclusive access. Success only if no other processor or process performed a more recent store of address x.+    * Tags memory for exclusive access. 
 +    * Always successfully reads a value from memory address x. 
 +  * STREX
 +    * Clears tagged memory for exclusive access.  
 +    * Success only memory was tagger == if no other processor or process performed a more recent store of address x. 
 +    * returns status bit that indicates whether the memory write succeeded. 
 + 
 +So LDEX/STREX must be placed in loop, to repeat LDREX/modify/STREX if STREX fails.