CPS全称Change Processor State,改变处理器状态
IE
:Interrupt or abort enable. 中断使能
ID:
Interrupt or abort disable. 关闭中断
最后面的i:Enables or disables IRQ interrupts.
CPSID i : 改变处理器的状态,关闭掉irq中断,
CPSIE i :打开irq中断
CPSIE if ; enable interrupts and fast interrupts
CPSID A ; disable imprecise aborts
CPSID ai, #17 ; disable imprecise aborts and interrupts, and enter FIQ mode
CPS #16 ; enter User mode
详情请参考ARM的汇编文档:https://developer.arm.com/documentation/dui0489/c/arm-and-thumb-instructions/miscellaneous-instructions/cps