Skip to content

Commit 256578a

Browse files
wip: Add helpers::init_v2
1 parent 98e8d5a commit 256578a

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
@@ -16,8 +16,7 @@
1616
//! [println_macro]: uefi::println!
1717
1818
use crate::prelude::{Boot, SystemTable};
19-
use crate::Result;
20-
use crate::StatusExt;
19+
use crate::{system, Result, StatusExt};
2120
use core::ffi::c_void;
2221
use core::ptr;
2322
use core::sync::atomic::{AtomicPtr, Ordering};
@@ -98,6 +97,12 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result<()> {
9897
Ok(())
9998
}
10099

100+
/// TODO
101+
pub fn init_v2() -> Result<()> {
102+
let mut st = system::system_table_boot();
103+
init(&mut st)
104+
}
105+
101106
pub(crate) fn exit() {
102107
// DEBUG: The UEFI spec does not guarantee that this printout will work, as
103108
// the services used by logging might already have been shut down.

0 commit comments

Comments
 (0)