x86-64 Hardware Exception Vectors (#DE–#HV)
x86_sandpile_undoc)Intel, AMD, and VIA x86 / x86-64 (stepping-dependent)
2026-snapshot
Summary
Hardware exception vectors (#DE, #DB, #BP, #OF, #UD, #NM, #DF, #GP, #PF, #AC, #MC, #XM, #VE, #CP, #VC, #SX) with fault/trap/abort class, error code behavior, and triggering conditions.
Syntax / Encoding
#DE (00h), #DB (01h), #BP (03h), #OF (04h), #BR (05h), #UD (06h), #NM (07h), #DF (08h)
Bitfields (22)
| Bits | Field | Description |
|---|---|---|
| #DE (00h) | divide errorinteger. Causes: AAM divide by zero DIV or IDIV divide by zero DIV or IDIV result too large why the historic Contributory behavior? because µcode used the divider as a shifter d |
| #DB (01h) | debug. Causes: DR0...3 code BP DR7.GD=1 |
| #BP (03h) | breakpoint. Causes: INT3 but not INT 03h |
| #OF (04h) | overflow. Causes: INTO if FLAGS.OF=1 |
| #BR (05h) | boundary range exceeded. Causes: BOUND if range exceeded BNDSTATUS=0 if MPX enabled MPX BNDC{L,U,N} BNDSTATUS.EC=01b MPX BND{LD,ST}X BNDSTATUS.EC=10b |
| #UD (06h) | undefined opcodesome CPL checks cause #UD not #GP. Causes: undefined opcode #6 – includes explicit UDW UD0 UD1 UD2 UDB instructions which depend on a CPU FMS or CPUID feature flags instructions which depend on a control |
| #NM (07h) | device not available. Causes: FPU#7/FXSR if CR0.EM=1 excluding FWAIT FPU#7/FXSR if CR0.TS=1 FWAIT if CR0.MP=1 and CR0.TS=1 |
| #DF (08h) | double fault. Causes: exceptions during exception handler invocation |
| #TS (0Ah) | invalid TSS 🅴XTINCT. Causes: implicit TSS accesses (stack switch, task switch, TSS32.IOPB, TSS32.IRB, also TR.ar.V=0) |
| #NP (0Bh) | not present 🅴XTINCT. Causes: segment register loads, explicit/implicit segment register accesses |
| #SS (0Ch) | stack segment. Causes: 🅴XTINCT SS loads 🅴XTINCT explicit/implicit accesses using SS |
| #GP (0Dh) | general protection. Causes: 🅴XTINCT CS/DS/ES/FS/GS loads 🅴XTINCT explicit/implicit accesses using CS/DS/ES/FS/GS |
| #PF (0Eh) | page fault. Causes: not present (PxE.P=0) (also, if 3-level PAE: PDPTE.P=0) reserved bit (CR4.PSE=1 or CR4.PAE=1, PxE.RSVD=1) !US page (CPL=3 rd/wr, PxE.US=0) aka supervisor page ! |
| #MF (10h) | math faultx87 stack FP. Causes: #IS for invalid stack or #IA for invalid arithmetic operation #D for denormalized operand #Z for divide by zero #O for numeric overflow #U for numeric underflow |
| #AC (11h) | alignment checkand slow lock detection. Causes: CR0.AM=1, EFLAGS.AC=1, CPL=3, misaligned accesses |
| #MC (12h) | machine check. Causes: internal error bus error bus error detected by external agent |
| #XFaka#XM (13h) | extended math faultvector SIMD. Causes: #I for invalid arithmetic operation #D for denormalized operand #Z for divide by zero #O for numeric overflow #U for numeric underflow #P for inexact result (pr |
| #VE (14h) | virtualization exception. Causes: EPT violations |
| #CP (15h) | control protection. Causes: 1 = near RET 2 = far RET or IRET 3 = missing ENDBRANCH at target of indirect CALL/JMP 4 = RSTORSSP token check failure 5 = SETSSBSY token check failure bit 15 = |
| #HV (1Ch) | hypervisor injection. Causes: AMD SVM injection (restricted or alternate) |
| #VC (1Dh) | VMM communication. Causes: n = AMD SVM NAE event (due to SEV-ES) |
| #SX (1Eh) | security exception. Causes: 1 = AMD SVM INIT redirection (due to VM_CR.R_INIT=1) |