__get_CPSR
In this section:
Syntax
unsigned int __get_CPSR(void);
Description
Returns the value of the ArmCPSR (Current Program Status Register). This intrinsic function can only be used in privileged mode, is not available for Cortex-M devices, and it requires Arm mode.
Note
This intrinsic function cannot be used in 64-bit mode.
See also
__arm_rsr, __arm_rsr64, __arm_rsrp.
Note
To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.