You copied the Doc URL to your clipboard.


Store Exclusive Register Halfword.


STXRH Ws, Wt, [Xn|SP{,#0}]


Is the 32-bit name of the general-purpose register into which the status result of the store exclusive is written. The value returned is.
If the operation updates memory.
If the operation fails to update memory.
Is the 32-bit name of the general-purpose register to be transferred.
Is the 64-bit name of the general-purpose base register or stack pointer.

Aborts and alignment

If a synchronous Data Abort exception is generated by the execution of this instruction:

  • Memory is not updated.
  • Ws is not updated.

A non halfword-aligned memory address causes an Alignment fault Data Abort exception to be generated, subject to the following rules:

  • The exception is generated if the Exclusive Monitors for the current PE include all of the addresses associated with the virtual address region of size bytes starting at address. The immediately following memory write must be to the same addresses.
  • Otherwise, it is implementation defined whether the exception is generated.

Whether the detection of memory aborts happens before or after the check on the local Exclusive Monitor depends on the implementation. As a result a failure of the local monitor can occur on some implementations even if the memory access would give a memory abort.


Store Exclusive Register Halfword stores a halfword from a register to memory if the PE has exclusive access to the memory address, and returns a status value of 0 if the store was successful, or of 1 if no store was performed. See Synchronization and semaphores in the ARMv8-A Architecture Reference Manual. The memory access is atomic.

For information about memory accesses see Load/Store addressing modes in the ARMv8-A Architecture Reference Manual.