(info: &core::panic::PanicInfo)
| 1 | #[panic_handler] |
| 2 | fn 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 | |
| 14 | pub static mut LOGGER: Logger = Logger::init(); |
| 15 |
nothing calls this directly
no outgoing calls
no test coverage detected