void libarm_disable_irq(void);
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.
// Disable IRQ interrupts libarm_disable_irq();