BIOS的文档中提到,clock是处于软中断中最高的优先级:
但是在跑swi的例程时,创建了clock与task任务,bios在运行的时候先进入task而不是clock:
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
swi例程创建了两个软中断,一个clock,还有一个task,我在每个任务开始时都打了断点。
它会首先进入task,task请求信号量被挂起后,才执行clock,clock中通过swi_post()来执行软中断。