Interrupt/Exception handling on the x86

Required reading: Chapter 5 (Interrupt and Exception handling)

Sources of Exceptions/Interrupts

PIC: Programmable Interrupt Controller

IDT: Interrupt Descriptor Table (pg 5-11)

IDT entry (pg 5-13)

TSS: Task State Segment

Exception Entry Mechanism

Exception Return Mechanism

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

    Comparison to PDP11/40