void libarm_disable_irq void   ) 
 

Disable IRQ interrupts.

This function disables IRQ interrupts by setting the I bit in the CPSR register.

Note that this function modifies the CPSR register's control field and therefore will only work when the CPU is executing in a privileged operating mode.

Example:

  // Disable IRQ interrupts
  libarm_disable_irq();