__mfmsr, __builtin_ppc_mfmsr
Purpose
Move from Machine State Register
Moves the contents of the machine state register (MSR) into bits 32 to 63 of the designated general-purpose register.
Syntax
unsigned long __builtin_ppc_mfmsr (void)
unsigned long __mfmsr (void)
Note:
- The built-in function in the form of
__nameis a synonym of the built-in function in the form of__builtin_ppc_name. - The built-in function in the form of
__nameis provided for compatibility with IBM® XL C/C++ for AIX® 16.1.0 or earlier releases. This built-in function form might be deprecated in the future.
Usage
Execution of this instruction is privileged and restricted to the supervisor mode only.