基于Cortex-M4内核的RT-Thread上下文切换机制剖析

ANALYSIS OF RT-THREAD CONTEXT SWITCH MECHANNISM BASED ON CORTEX -M4 KERNEL

  • 摘要: RT-Thread是源码公开的国产嵌入式实时操作系统。基于Cortex-M4内核,对RT-Thread通过底层PendSV中断进行上下文切换的过程进行了剖析,从指令级别对上下文切换的实现机制进行了研究,为深入理解内核调度机制的实现提供了参考,也为RT-Thread的应用与推广提供了技术基础。

     

    Abstract: RT-Thread is a domestic embedded real time operating system with open source. Based on Cortex-M4 kernel, the process of RT-Thread context switch through the PendSV interrupt was analyzed, and the implementation mechanism of context switch was deeply studied from the assembly instructions, which provided a reference for further understanding the implementation of kernel scheduling mechanism, and the technical basis for the application and promotion of RT-Thread.

     

/

返回文章
返回