Exceptions

Revision as of 13:42, 27 October 2008 by osdev>Virtlink (New page: '''Exceptions''' as described in this article are generated by the CPU when an 'error' occurs. Some exceptions are not really errors in most cases, such as page faults. Exc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Exceptions as described in this article are generated by the CPU when an 'error' occurs. Some exceptions are not really errors in most cases, such as page faults.

Exceptions are classified as:

  • Faults: These can be corrected and the program may continue as if nothing happend.
  • Traps: Traps are reported immediately after the execution of the trapping instruction.
  • Aborts: Some severe unrecoverable error.
Name Vector nr. Type Mnemonic Error code?
Divide-by-zero Error 0 Fault #DE No
Debug 1 Fault/Trap #DB No
Non-maskable Interrupt 2 Interrupt #NMI No
Breakpoint 3 Trap #BP No
Overflow 3 Trap #OF No

Faults

Divide-by-zero Error

Debug

Non-maskable Interrupt

Breakpoint

Overflow