You copied the Doc URL to your clipboard.

MSR (immediate)

Move immediate value to Special Register.

Syntax

MSR pstatefield, #imm

Where:

pstatefield
Is a PSTATE field name, and can be one of UAO, PAN, SPSel, DAIFSet or DAIFClr.
imm
Is a 4-bit unsigned immediate, in the range 0 to 15.

Usage

Move immediate value to Special Register moves an immediate value to selected bits of the PSTATE. For more information, see Process state, PSTATE in the Arm® Architecture Reference Manual Arm®v8, for Arm®v8‑A architecture profile.

The bits that can be written are D, A, I, F, and SP. This set of bits is expanded in extensions to the architecture as follows:

  • Arm®v8.1 adds the PAN bit.
  • Armv8.2 adds the UAO bit.
Was this page helpful? Yes No