摘要
2K1000是龙芯推出面向工业控制与终端等领域的低功耗通用处理器,基于MIPS架构,采用双GS264内核。2K1000内部中断控制器不支持中断嵌套,对于多任务、高实时性要求的应用场景不利于快速响应高优先级任务。针对该问题提出一种方法,通过软件控制中断路由以及中断现场的保护和恢复,可在2K1000上实现中断优先级扩展和多级嵌套,该方法可应用于裸机系统且比操作系统具有更好的实时性,便于移植与扩展。
2K1000 is a low-power general-purpose processor launched by Loongson for industrial control and terminal fields.It integrates dual GS264 cores based on mips architecture.The 2K1000 internal interrupt controller does not support interrupt nesting,which is not conducive to rapid response to high priority tasks for multi task and high real-time application scenarios.This paper proposes a method to solve this problem.The software controls the interrupt route with protecting and recovering the interrupt site at the same time.It realizes the interrupt priority expansion and multi-level nesting on 2K1000.This method can be applied to bare-meta systems and has better real-time performance than operating systems,which is convenient for transplantation and expansion.
出处
《工业控制计算机》
2024年第10期78-80,84,共4页
Industrial Control Computer