Skip to content

Commit

Permalink
wip: Add helpers::init_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed May 2, 2024
1 parent 98e8d5a commit 256578a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions uefi/src/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
//! [println_macro]: uefi::println!

use crate::prelude::{Boot, SystemTable};
use crate::Result;
use crate::StatusExt;
use crate::{system, Result, StatusExt};
use core::ffi::c_void;
use core::ptr;
use core::sync::atomic::{AtomicPtr, Ordering};
Expand Down Expand Up @@ -98,6 +97,12 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result<()> {
Ok(())
}

/// TODO
pub fn init_v2() -> Result<()> {
let mut st = system::system_table_boot();
init(&mut st)
}

pub(crate) fn exit() {
// DEBUG: The UEFI spec does not guarantee that this printout will work, as
// the services used by logging might already have been shut down.
Expand Down

0 comments on commit 256578a

Please sign in to comment.