redox_uefi_std 0.1.14

UEFI standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::prelude::*;

#[no_mangle]
pub unsafe extern "efiapi" fn efi_main(
    handle: Handle,
    system_table: &'static mut SystemTable,
) -> Status {
    extern "C" {
        fn main() -> Status;
    }

    crate::HANDLE = handle;
    crate::SYSTEM_TABLE = system_table;

    uefi_alloc::init(::core::mem::transmute(system_table));

    main()
}