Expand description
Kernel panic paths: kernel_panic for explicit kernel panics and the
required #[panic_handler] for language-level panics.
Authors: MarioS271
Re-exportsΒ§
use crate::cpu::instructions;πuse crate::lib::panic_codes::PanicCode;πuse crate::lib::types::fmt_buffer::FmtBuffer;πuse crate::SIMPLE_STATE;πuse core::panic::PanicInfo;πuse core::sync::atomic::AtomicU8;πuse core::sync::atomic::Ordering;π
EnumsΒ§
- Panic
Triggered π - Enum helper to not have to write the raw bitshifts on every PANIC_TRIGGERED interaction
StaticsΒ§
- PANIC_
TRIGGERED π - Used to prevent infinite panic handler reentry
FunctionsΒ§
- force_
unlock_ π βloggers - Force-unlocks the kernel serial logger and the basic_fb framebuffer
- kernel_
panic - Halt the kernel with a diagnostic message; re-entrant calls skip straight to the halt loop.
- panic π
- Rustβs required
#[panic_handler]for language-level panics.