Skip to main content

Module trap

Module trap 

Source
Expand description

Trap handling.

Re-exports§

pub use diagnostics::BacktraceRegisters;

Modules§

boot
Early exception handoff without runtime task or CPU-local dependencies.
diagnostics
Runtime-owned diagnostics for CPU exception reports.
fatal
Terminal CPU faults handed directly to the owning runtime.

Structs§

InterruptedContext
Value-only IRQ sampling input. It never retains a pointer into a trap stack.
KernelTrapFrame
Lifetime-bound view of a kernel-origin x86 trap frame.
PageFaultFlags
Access information reported by a CPU page-fault trap.
UserRegisters
Saved registers when a trap (interrupt or exception) occurs.

Enums§

InterruptedPrivilege
Privilege of an interrupted execution context.
TrapOrigin
Privilege domain that owns a saved register image.

Functions§

breakpoint_handler
Breakpoint handler.
debug_handler
Debug handler.
dispatch_irq
Dispatches an IRQ through the runtime-registered handler, or the default handler.
dispatch_page_fault
Dispatches a page fault through the runtime-registered handler, or the default handler.
irq_handler
Dispatches an IRQ to the installed trap hook.
page_fault_handler
Dispatches a page fault to the installed trap hook.
set_breakpoint_handler
Installs the global breakpoint trap hook and returns the previous one.
set_debug_handler
Installs the global debug trap hook and returns the previous one.
set_irq_handler
Installs the global IRQ trap hook and returns the previous one.
set_page_fault_handler
Installs the global page-fault trap hook and returns the previous one.

Type Aliases§

BreakpointHandler
Breakpoint trap hook type.
DebugHandler
Debug trap hook type.
IrqHandler
IRQ trap hook type.
PageFaultHandler
Page-fault trap hook type.