Use uefi crate and its entry macro

This commit is contained in:
Philipp Oppermann
2021-03-19 14:41:16 +01:00
parent 529725c82b
commit e0b5cf89ba
3 changed files with 83 additions and 4 deletions

View File

@@ -1,13 +1,15 @@
#![feature(abi_efiapi)]
#![no_std]
#![no_main]
use core::ffi::c_void;
use core::panic::PanicInfo;
use uefi::prelude::entry;
#[no_mangle]
pub extern "efiapi" fn efi_main(image: *mut c_void, system_table: *const c_void) -> usize {
#[entry]
fn efi_main(
image: uefi::Handle,
system_table: uefi::table::SystemTable<uefi::table::Boot>,
) -> uefi::Status {
loop {}
}