#![no_std] use linux::start_linux; use pe::get_loader_sections; use uefi::{Handle, Status, boot}; mod initrd; mod linux; mod pe; mod secureboot; mod unicode; #[cfg(not(test))] #[panic_handler] pub fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } pub fn bootloader(image_handle: Handle) -> Status { let sections = get_loader_sections(image_handle).unwrap(); start_linux(image_handle, sections).unwrap(); boot::stall(1_000_000_000); Status::SUCCESS }