MCPcopy Create free account
hub / github.com/Ruddle/Fomos / panic

Function panic

app_background/src/st.rs:2–12  ·  view source on GitHub ↗
(info: &core::panic::PanicInfo)

Source from the content-addressed store, hash-verified

1#[panic_handler]
2fn panic(info: &core::panic::PanicInfo) -> ! {
3 x86_64::instructions::interrupts::int3();
4 unsafe {
5 (LOGGER.f)("panic".as_ptr(), 5);
6 };
7 unsafe {
8 let s = &format!("{:?}", info);
9 (LOGGER.f)(s.as_ptr(), s.len() as u32)
10 };
11 loop {}
12}
13
14pub static mut LOGGER: Logger = Logger::init();
15

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected