Does anybody know how to implement in C program the reading of MPC5744 - Machine State Register (MSR) register?
I need this for the Critical Section implementation.
Thanks in advance.
Have you tried asm("mfmsr 4") so that register 4 will hold MSR value ?
You have to use extended inline assembler syntax to read the value in C variable (Using the GNU Compiler Collection (GCC): Extended Asm )
Thanks for the hint.
Retrieving data ...