Commit 28ac562c authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

Use efi_main() instead of start() as name for entry point

This is what the UEFI targets included in Rustc use for the entry point:
https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/uefi_msvc_base.rs

With this change, `uefi_std` can be used with the standard target
without passing a `-Z pre-link-arg=` argument to change the entry point
to `_start`.
parent 3d94560a
......@@ -3,7 +3,7 @@ use uefi::status::Status;
use uefi::system::SystemTable;
#[no_mangle]
pub unsafe extern "win64" fn _start(handle: Handle, system_table: &'static mut SystemTable) -> Status {
pub unsafe extern "win64" fn efi_main(handle: Handle, system_table: &'static mut SystemTable) -> Status {
extern "C" {
fn main() -> Status;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment