Professional Documents
Culture Documents
The fetch/
execute cycle is
adjusted to
support interrupts.
(figure 4)
Interrupt Processing
Processing an interrupt on most architectures involves
the following steps:
1. Finish the current instruction
2. Push the IP on the stack
3. Set the IP to the interrupt handler's address.
4. Preserve the process context
(i.e. push registers).
5. Executing the interrupt handling
routine.
6. Restore the process context
(i.e. pop registers).
7. Pop the IP from the stack