mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-18 15:27:50 +00:00
Use uefi crate and its entry macro
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -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 {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user