ARM汇编部分全称(CPSID、CPSIE全称)

本文详细解读了ARM汇编中的CPS指令,包括CPSID/CPSIE用于改变处理器状态(如关闭/开启IRQ中断),以及CPSIE if/CPSID AI等具体操作。通过实例和ARM官方文档,帮助读者理解中断管理和处理器模式转换的重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值