Design Method of Interrupt Nesting Based on Loongson 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 applica-tion 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.