摘要 |
A method for reducing interrupt processing overhead is applied in situations when it is not necessary to preserve processor state information. A flag is provided to indicate whether or not the processor is available. Upon recognition of an interrupt, an interrupt vector address is computed based, in part, on the state of the processor available flag. If the processor is available, indicating that it is not currently working on a task, there is no need to preserve the processor state information, and the state-saving portions of the interrupt processing routines are bypassed. On the other hand, if the processor is not available, indicating that it is engaged in a task, the state information must be preserved so that the processor can return to the task after the interrupt is processed. In this case, the state-saving portions of the interrupt processing routines are not bypassed.
|