Interrupt/Exception handling on the x86

Required reading: Chapter 5 (Interrupt and Exception handling)

The Intel IA32 interrupt/exception mechanism is designed so that code running when the interrupt/exception occurs does not get to choose arbitrarily where the kernel is entered and how.

Sources of Exceptions/Interrupts

  • iret -- top of stack should be old EIP
  • closer look at old EIP / Exception Types

    Comparison to PDP11/40