gpt4 book ai didi

arm - 有谁知道如何启用ARM FIQ?

转载 作者:行者123 更新时间:2023-12-04 17:42:13 25 4
gpt4 key购买 nike

有谁知道如何启用ARM FIQ?

最佳答案

除了在管理员模式下启用或禁用 IRQ/FIQ 之外,您无需在 ARM 上进行任何特殊设置即可使用它,除非系统(运行 ARM 芯片的系统)在硬件中禁用了它(根据您的评论,情况并非如此,因为您看到 FIQ 输入引脚驱动正确)。

For those unaware of the acronyms, FIQ is simply the last interrupt vector in the list which means it's not limited to a branch instruction as the other interrupts are. That means it can execute faster than the other IRQ handlers.

Normal IRQs are limited to a branch instruction since they have to ensure their code fits into a single word. FIQ, because it won't overwrite any other IRQ vectors, can just run the code directly without a branch instruction (hence the "fast").

The FIQ input line is just a way for external elements to kick the ARM chip into FIQ mode and start executing the correct exception. There's nothing on the ARM itself which prevents that from happening except the CPSR.


在管理员模式下启用 FIQ:
MRS r1, cpsr         ; get the cpsr.
BIC r1, r1, #0x40 ; enable FIQ (ORR to disable).
MSR cpsr_c, r1 ; copy it back, control field bit update.
可以对普通 IRQ 执行类似的操作,但使用 #0x80 而不是 #0x40。

关于arm - 有谁知道如何启用ARM FIQ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1119465/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com