External interrupts are raised from outside the CPU.Many I/O devices raise
interrupts (e.g., keyboard, timer, disk drives, CD-ROM and sound cards). Internal
interrupts are raised from within the CPU, either from an error or the interrupt
instruction. Error interrupts are also called traps. Interrupts generated from the
interrupt instruction are called software interrupts. DOS uses these types
of interrupts to implement its API (Application Programming Interface).
from pcasm
也就是说外部中断是硬件中断,内部中断分为软件中断和异常。
举个例子,syscall是软件中断,int指令也是;除零是异常,缺页也是异常。