首页> 外国专利> Implementing pseudo non-masking interrupts behavior using a priority interrupt controller

Implementing pseudo non-masking interrupts behavior using a priority interrupt controller

机译:使用优先级中断控制器实现伪非屏蔽中断行为

摘要

A method is provided for handling interrupts in a processor, the interrupts including regular interrupts having a range of priorities and a pseudo non-maskable interrupt (PNMI) that is of a higher priority than any of the regular interrupts. The method includes obtaining an interrupt vector corresponding to a received interrupt, and if the received interrupt is a PNMI, executing a PNMI interrupt handler. If the received interrupt is a regular interrupt, the method further comprises reading a mask flag that indicates whether regular interrupts are enabled in an interrupt controller and further: if the mask flag indicates that regular interrupts are enabled, enabling interrupts in the processor so that a PNMI can be received while handling the regular interrupt, executing, a regular interrupt handler, and disabling interrupts in the processor; and if the mask flag indicates that regular interrupts are disabled, saving the interrupt vector for subsequent handling.
机译:提供了一种用于处理处理器中的中断的方法,该中断包括具有一定范围的优先级的常规中断以及比任何常规中断具有更高优先级的伪不可屏蔽中断(PNMI)。该方法包括获得与接收到的中断相对应的中断向量,并且如果接收到的中断是PNMI,则执行PNMI中断处理程序。如果接收到的中断是常规中断,则该方法还包括读取掩码标志,该标志指示中断控制器中是否启用了常规中断,并且进一步:如果该掩码标志指示常规中断被启用,则在处理器中启用中断,以便在处理常规中断,执行常规中断处理程序以及禁用处理器中的中断时,可以接收PNMI。如果屏蔽标志指示禁止常规中断,则将中断向量保存以备后用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号