//! klog — dump kernel log via the exports table. #![no_std] #![no_main] #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { loop { core::hint::spin_loop(); } } #[unsafe(no_mangle)] pub extern "C" fn efi_main(exports: &'static rsapi::Exports, _argc: usize, _argv: *const rsapi::Arg) -> i32 { let mut buf = [0u8; 2048]; let n = (exports.klog_dump)(buf.as_mut_ptr(), buf.len() as u64) as usize; if n > 0 { (exports.put_line)(rsapi::Line { ptr: buf.as_ptr(), len: n }); } 0 }