摘要
大多数嵌入式操作系统在进入中断后进行中断现场保护时选择保护所有通用寄存器,这种普遍的做法延长了微处理器的访存时间,并且增加了产生存储器分体冲突的可能性。本文提出根据中断服务子程序对通用寄存器的需求而进行中断现场保护的策略,有效减少了中断现场保护时所需保护的通用寄存器数量,缩短了中断响应时间,提高了系统的中断实时性。最后,对这种优化策略进行了总结。
Most embedded operating systems tend to save all the processor general-purpose registers when interrupt arrives to prevent the context destroyed by interrupt service routine. As a matter of fact, in such way it delays the memory access time and rises the possibility of collision in memory banks. Thereby, an optimizing strategy is proposed in this paper that not all the general-purpose registers should be saved but only the very part that are used in the interrupt service routine. In this way, the amount of registers to be saved is decreased so that the interrupt response time is shortened and the interrupt real-time is promoted.
出处
《微计算机信息》
2004年第11期83-84,共2页
Control & Automation
关键词
嵌入式系统
实时性
中断响应
中断延迟
现场保护
embedded system
real-time
interrupt response
interrupt latency
context saving