pub fn panic_handler(info: &PanicInfo<'_>) -> !Expand description
Main kernel panic handler.
Always emits full debug info to the serial port. Tries to display it on the framebuffer via the normal VGA_WRITER path. If VGA_WRITER is locked (e.g. the fault happened inside a write to the console), falls back to a direct framebuffer draw that bypasses all locks.
After all output is delivered, halts the current CPU forever.