I see the ARM has a non-maskable interrupt (NMI). Is there an easy way to mask all maskable interrupts, like a single flag or bit?
yes, the 'I' bit in the PRIMASK ARM core register. Below how to enable/disable all maskable interrupts:
I hope this helps,
Retrieving data ...