You copied the Doc URL to your clipboard.

MSR (immediate)

Move immediate value to Special Register.


MSR pstatefield, #imm


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


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 ARMv8, for ARMv8-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:

  • ARMv8.1 adds the PAN bit.
  • ARMv8.2 adds the UAO bit.