Skip to main content

Module panic

Module panic 

Source
Expand description

Panic helpers for routing panic output to a sink and halting. Panic and halt helpers.

In many kernels you want a consistent strategy for panic handling:

  • Format panic information to a device (serial/VGA/etc.).
  • Halt the CPU (spin) to stop further damage.

This module provides the building blocks to implement that pattern.

Functionsยง

halt
Busy-wait forever.
panic_to_sink
Formats a core::panic::PanicInfo to sink and then halts.