tail-chaining of Interrupts

杀马特。学长 韩版系。学妹 提交于 2020-01-03 09:07:28

问题


what is tail chaining of Interrupts which is supported by NVIC in ARM Cortex M3.


回答1:


Tail-chaining is back-to-back processing of exceptions without the overhead of state saving and restoration between interrupts. The processor skips the pop of eight registers and push of eight registers when exiting one ISR and entering another because this has no effect on the stack contents. Cortex™-M3 Technical Reference Manual

Which basically means, handling pending interrupts without repeating the stacking.

I recommend this book if you want to know more details:

The Definitive Guide to the ARM Cortex-M3




回答2:


If an exception is in pending state when another exception handler has been completed , instead of returning to the interrupted program and then entering the exception sequence again, a tail chain scenario will occur, where processor will not have to restore all register values from the stack and push them back to the stack again. the tail chaining of exception allows lower exception processing overhead and better energy efficiency.



来源:https://stackoverflow.com/questions/13029201/tail-chaining-of-interrupts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!