в доке написаны какие-то непонятные буквы:
4.7.8. __disable_irq
This intrinsic disables IRQ interrupts.
Note
Typically, this intrinsic disables IRQ interrupts by setting the I-bit in the CPSR. However, for M-profile it sets the exception mask register (PRIMASK).
Хотелось бы понять - что это такое и с чем его едят в ARMе.