2022-11-21 05:44:04 -05:00
|
|
|
#![no_main]
|
|
|
|
#![no_std]
|
|
|
|
#![feature(abi_efiapi)]
|
|
|
|
|
2022-11-21 10:22:44 -05:00
|
|
|
use uefi::{prelude::*, proto::console::text::Output};
|
|
|
|
|
|
|
|
mod boot_image;
|
|
|
|
|
|
|
|
fn print_logo(output: &mut Output) {
|
|
|
|
output.clear().unwrap();
|
|
|
|
|
|
|
|
output
|
|
|
|
.output_string(cstr16!(
|
|
|
|
"
|
|
|
|
_ _ _ \r
|
|
|
|
| | | | | | \r
|
|
|
|
| | __ _ _ __ ______ _| |__ ___ ___ | |_ \r
|
|
|
|
| |/ _` | '_ \\|_ / _` | '_ \\ / _ \\ / _ \\| __|\r
|
|
|
|
| | (_| | | | |/ / (_| | |_) | (_) | (_) | |_ \r
|
|
|
|
|_|\\__,_|_| |_/___\\__,_|_.__/ \\___/ \\___/ \\__|\r
|
|
|
|
"
|
|
|
|
))
|
|
|
|
.unwrap();
|
|
|
|
}
|
2022-11-21 05:44:04 -05:00
|
|
|
|
|
|
|
#[entry]
|
|
|
|
fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
|
|
|
|
uefi_services::init(&mut system_table).unwrap();
|
|
|
|
|
2022-11-21 10:22:44 -05:00
|
|
|
print_logo(system_table.stdout());
|
2022-11-21 09:36:39 -05:00
|
|
|
|
2022-11-21 05:44:04 -05:00
|
|
|
Status::SUCCESS
|
|
|
|
}
|