Полезная информация

next up previous contents
Next: How Uses Interrupts and Up: How System Calls Work Previous: How System Calls Work

What Does the 386 Provide?

The 386 recognizes two event classes: exceptions and interrupts. Both cause a forced context switch to new a procedure or task. Interrupts can occur at unexpected times during the execution of a program and are used to respond to signals from hardware. Exceptions are caused by the execution of instructions.

Two sources of interrupts are recognized by the 386: Maskable interrupts and Nonmaskable interrupts. Two sources of exceptions are recognized by the 386: Processor detected exceptions and programmed exceptions.

Each interrupt or exception has a number, which is referred to by the 386 literature as the vector. The NMI interrupt and the processor detected exceptions have been assigned vectors in the range 0 through 31, inclusive. The vectors for maskable interrupts are determined by the hardware. External interrupt controllers put the vector on the bus during the interrupt-acknowledge cycle. Any vector in the range 32 through 255, inclusive, can be used for maskable interrupts or programmed exceptions. See figure gif for a listing of all the possible interrupts and exceptions. [Check all this out to make sure that it is right.]

Figure: Interrupt and Exception Assignments

Figure: Priority of simultaneous interrupts and exceptions

Converted on:
Mon Apr 1 10:20:16 EST 1996