major cleanup
This commit is contained in:
@ -11,8 +11,13 @@ mod pe;
|
||||
mod secureboot;
|
||||
mod unicode;
|
||||
|
||||
pub fn bootloader(image_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
|
||||
uefi_services::init(&mut system_table).unwrap();
|
||||
#[cfg(not(test))]
|
||||
#[panic_handler]
|
||||
pub fn panic(_: &core::panic::PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
pub fn bootloader(image_handle: Handle, system_table: SystemTable<Boot>) -> Status {
|
||||
let boot_services = system_table.boot_services();
|
||||
let sections = get_loader_sections(boot_services).unwrap();
|
||||
start_linux(image_handle, boot_services, sections).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user