int libarm_disable_irq_fiq | ( | void |  | ) |
| Disables IRQ and FIQ interrupts and return the previous enable state. Returns: The IRQ and FIQ enable state prior to disabling the IRQ and FIQ interrupts. This function disables both IRQ and FIQ interrupts, it also returns the previous IRQ and FIQ enable state so that it can be restored using libarm_restore_irq_fiq. 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:
      int s;

      // Disable IRQ and FIQ interrupts
      s = libarm_disable_irq_fiq();

      ...

      // Restore IRQ and FIQ interrupts
      libarm_restore_irq_fiq(s);