Create an EFI entry point function

This commit is contained in:
Philipp Oppermann
2021-02-23 11:33:13 +01:00
parent c77f41f158
commit 80bfeb24a9

View File

@@ -1,8 +1,16 @@
#![feature(abi_efiapi)]
#![no_std]
#![no_main]
use core::ffi::c_void;
use core::panic::PanicInfo;
#[no_mangle]
pub extern "efiapi" fn efi_main(image: *mut c_void, system_table: *const c_void) -> usize {
loop {}
}
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}