meta data for this page
  •  

This is an old revision of the document!


Exclusive Monitor

The Cortex-M4 processor implements a local exclusive monitor. For more information about semaphores and the local exclusive monitor see the ARMv7M ARM Architecture Reference Manual.

Instructions:

  • LDREX - Load-Exclusive
  • STREX - Store-Exclusive
  • CLREX - Clear-Exclusive

Exclusive instructions must be used in pairs:

  • LDREX - tags memory for exclusive access. Always successfully reads a value from memory address x.
  • STREX - clears tagged memory for exclusive access. Success only if no other processor or process performed a more recent store of address x.