mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Create an EFI entry point function
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user