MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / panic

Function panic

kernel/src/main.rs:96–99  ·  view source on GitHub ↗
(info: &PanicInfo)

Source from the content-addressed store, hash-verified

94#[cfg(not(test))] // If not in QEMU test mode
95#[panic_handler]
96fn panic(info: &PanicInfo) -> ! {
97 println!("Kernel panic: {}", info);
98 kernel::hlt_loop();
99}
100
101#[cfg(test)]
102#[panic_handler]

Callers

nothing calls this directly

Calls 2

hlt_loopFunction · 0.85
test_panic_handlerFunction · 0.85

Tested by

no test coverage detected