title: Temporarily disable interrupts on ARM
body: <p>I am starting working with the ARM platform (specifically the TI TMS570 family).</p>
  
  <p>I have some code with critical regions where I don't want an exception to occur. So I want to save the IRQ and FIR enabled flags on entering the regions and restore them on exiting.</p>
  
  <p>How do I do that?</p>