From 80bfeb24a9a005064cc52d32d7783725e4327377 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 23 Feb 2021 11:33:13 +0100 Subject: [PATCH] Create an EFI entry point function --- src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.rs b/src/main.rs index 277f9dce..4ad616d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {}