0 参考资料
STM32MP13xx参考手册.pdf(RM0475)
ARM Generic Interrupt Controller Architecture version 2.0 - Architecture Specification.pdf
1 GIC(全局中断控制器)介绍
Cortex-M内核使用NVIC(嵌套向量中断控制器)管理中断及异常,在Cortex-A7内核中使用GIC(全局中断控制器)来管理中断和异常。有关GIC(全局中断控制器)的描述可以参照基于Cortex-A7内核的STM32MP13xx:
1.1 介绍部分
The following Arm® specifications provides additional details on the GIC:
• Arm® Generic Interrupt Controller - Architecture Specification v2.0
• Cortex®-A7 MPCore Technical Reference Manual Revision: r0p5
可以看到STM32MP13xx系列SoC使用的GIC版本为V2.0。
1.2 GIC(全局中断控制器)主要特点
The integrated GIC collates and arbitrates from a large number of interrupt sources.
It provides:
• Masking of interrupts
• Prioritization of interrupts
• Distribution of the interrupts to the target processors
• Tracking the status of interrupts
• Generation of interrupts by software
• Support for security extensions
• Support for virtualization extensions
也就是:
(1)可屏蔽中断
(2)可配置中断优先级
(3)将中断分配给目标处理器(支持多核)
(4)跟踪中断状态
(5)支持软中断
(6)支持安全性扩展
(7)支持虚拟化扩展
1.3 GIC(全局中断控制器)框图
摘自《ARM Generic Interrupt Controller Architecture version 2.0 - Architecture Specification》。