Skip to main content

invalid_opcode_handler

Function invalid_opcode_handler 

Source
extern "x86-interrupt" fn invalid_opcode_handler(
    stack_frame: InterruptStackFrame,
)
Expand description

Performs the invalid opcode handler operation.

SAFETY: This handler uses ONLY raw asm for diagnostic output (no log::error!, no e9_println!, no Port::write). The Port::write path from the x86_64 crate can trigger re-entrant #UD in exception context, causing an infinite fault loop. Raw out 0xe9, al is safe.