摘要 |
To speed up interrupt processing by interrupt handlers executing with interrupts disabled, one or more processor registers in the computer system are reserved for exclusive use by software executing with interrupt disabled. Interrupt processing code can be written in a high level language. If the code generated by the high level language compiler uses non-reserved registers, these registers are saved by the interrupt handler in the reserved registers before the interrupt processing code is invoked. After execution of the interrupt processing code, the interrupt handler restores the non-reserved registers from the reserved registers. Saving the non-reserved registers in the reserved registers rather than in a memory improves the interrupt processing speed. |