Intel x86 processor processor interrupt handling overview knowledge points
Processor interrupt handling is a must-have knowledge for learning computer architecture. Under Intel's x86 processors, interrupts are collectively referred to as external interrupts, exceptions, and traps. External interrupts come from hardware and are random. An exception originates from within the processor and indicates that some error condition has been detected during the execution of an instruction by the processor. Traps come from programs and are generated by instructions such as INT n, INTO, etc. External interrupts can be masked, but lines and exceptions cannot be masked. The way to mask the interrupt is to clear the IF flag in the EFLAGS register. A program that handles an interrupt is called an interrupt handler. Programs that handle exceptions are called exception handlers. The program that handles the trap is called a system call service program. Handlers can be located anywhere within and space... Read more