首页> 外国专利> Interrupt and trap handling in an embedded multi-thread processor to avoid priority inversion and maintain real-time operation

Interrupt and trap handling in an embedded multi-thread processor to avoid priority inversion and maintain real-time operation

机译:嵌入式多线程处理器中的中断和陷阱处理可避免优先级倒置并保持实时操作

摘要

A real-time, multi-threaded embedded system includes rules for handling traps and interrupts to avoid problems such as priority inversion and re-entrancy. By defining a global interrupt priority value for all active threads and only accepting interrupts having a priority higher than the interrupt priority value, priority inversion can be avoided. Switching to the same thread before any interrupt servicing, and disabling interrupts and thread switching during interrupt servicing can simplify the interrupt handling logic. By storing trap background data for traps and servicing traps only in their originating threads, trap traceability can be preserved. By disabling interrupts and thread switching during trap servicing, unintended trap re-entrancy and servicing disruption can be prevented.
机译:实时,多线程嵌入式系统包括用于处理陷阱和中断的规则,以避免诸如优先级倒置和重新进入之类的问题。通过为所有活动线程定义全局中断优先级值,并仅接受优先级高于中断优先级值的中断,可以避免优先级倒置。在进行任何中断服务之前切换到同一线程,并在中断服务期间禁用中断和线程切换可以简化中断处理逻辑。通过为陷阱存储陷阱背景数据并仅在陷阱的原始线程中为陷阱提供服务,可以保留陷阱的可追溯性。通过在陷阱服务期间禁用中断和线程切换,可以防止意外的陷阱重入和服务中断。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号