Skip to content

Commit 1fc0285

Browse files
wip: Add helpers::init_v2
1 parent a6e707d commit 1fc0285

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

uefi/src/helpers/mod.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
//! [println_macro]: uefi::println!
2020
2121
use crate::prelude::{Boot, SystemTable};
22-
use crate::Result;
23-
use crate::StatusExt;
22+
use crate::{system, Result, StatusExt};
2423
use core::ffi::c_void;
2524
use core::ptr;
2625
use core::sync::atomic::{AtomicPtr, Ordering};
@@ -102,6 +101,12 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result<()> {
102101
Ok(())
103102
}
104103

104+
/// TODO
105+
pub fn init_v2() -> Result<()> {
106+
let mut st = system::system_table_boot();
107+
init(&mut st)
108+
}
109+
105110
pub(crate) fn exit() {
106111
// DEBUG: The UEFI spec does not guarantee that this printout will work, as
107112
// the services used by logging might already have been shut down.

0 commit comments

Comments
 (0)