You copied the Doc URL to your clipboard.

ARM Compiler armasm User Guide : LDXR

LDXR

Load Exclusive Register.

Syntax

LDXR Wt, [Xn|SP{,#0}] ; 32-bit general registers

LDXR Xt, [Xn|SP{,#0}] ; 64-bit general registers

Where:

Wt

Is the 32-bit name of the general-purpose register to be transferred.

Xt

Is the 64-bit name of the general-purpose register to be transferred.

Xn|SP

Is the 64-bit name of the general-purpose base register or stack pointer.

Usage

Load Exclusive Register derives an address from a base register value, loads a 32-bit word or a 64-bit doubleword from memory, and writes it to a register. The memory access is atomic. The PE marks the physical address being accessed as an exclusive access. This exclusive access mark is checked by Store Exclusive instructions. See Synchronization and semaphores in the ARMv8-A Architecture Reference Manual. For information about memory accesses see Load/Store addressing modes in the ARMv8-A Architecture Reference Manual.

Was this page helpful? Yes No