Hi,
to protect a small critical section it is sometimes usual to have all interrupts blocked (except NMI and Reset). Normally this looks like
- store the old Global Interrupt State
- disable interrupts
[critical section]
- restore the old Global Interrupt State back.
How can I do this on Stellaris ARM LM4F processor?
Sure, I've thousands of single disables but I'm searching for the global one. Somewhere I've read that this register is called "PRIMASK" with the values 0 for enable and 1 for disable. What is the address? And why it is undocumented?