123 for (i = 32; i < OS_HWI_MAX_NUM; i += 16) {
124 GIC_REG_32(GICD_ICFGR(i / 16)) = 0;
128 for (i = 32; i < OS_HWI_MAX_NUM; i += 4) {
129 GIC_REG_32(GICD_ITARGETSR(i / 4)) = 0x01010101;
133 for (i = 0; i < OS_HWI_MAX_NUM; i += 4) {
134 GIC_REG_32(GICD_IPRIORITYR(i / 4)) = GICD_INT_DEF_PRI_X4;
138 for (i = 0; i < OS_HWI_MAX_NUM; i += 32) {
139 GIC_REG_32(GICD_ICENABLER(i / 32)) = ~0;
145 GIC_REG_32(GICD_CTLR) = 1;
147#ifdef LOSCFG_KERNEL_SMP
152#ifdef LOSCFG_KERNEL_SMP_CALL
VOID HalIrqInitPercpu(VOID)
中断控制器与CPU之间的关系初始化
LITE_OS_SEC_TEXT_INIT UINT32 LOS_HwiCreate(HWI_HANDLE_T hwiNum, HWI_PRIOR_T hwiPrio, HWI_MODE_T hwiMode, HWI_PROC_FUNC hwiHandler, HwiIrqParam *irqParam)
创建一个硬中断 中断创建,注册中断号、中断触发模式、中断优先级、中断处理程序。中断被触发时, handleIrq会调用该中断处理程序
VOID OsMpWakeHandler(VOID)
硬中断唤醒处理函数
VOID OsMpFuncCallHandler(VOID)
OsMpFuncCallHandler 回调向当前CPU注册过的函数
VOID OsMpScheduleHandler(VOID)
硬中断调度处理函数
VOID OsMpHaltHandler(VOID)
硬中断暂停处理函数
@ LOS_MP_IPI_SCHEDULE
!< 唤醒CPU
@ LOS_MP_IPI_FUNC_CALL
!< 停止CPU
@ LOS_MP_IPI_HALT
!< 调度CPU