We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e707d commit 1fc0285Copy full SHA for 1fc0285
uefi/src/helpers/mod.rs
@@ -19,8 +19,7 @@
19
//! [println_macro]: uefi::println!
20
21
use crate::prelude::{Boot, SystemTable};
22
-use crate::Result;
23
-use crate::StatusExt;
+use crate::{system, Result, StatusExt};
24
use core::ffi::c_void;
25
use core::ptr;
26
use core::sync::atomic::{AtomicPtr, Ordering};
@@ -102,6 +101,12 @@ pub fn init(st: &mut SystemTable<Boot>) -> Result<()> {
102
101
Ok(())
103
}
104
+/// TODO
105
+pub fn init_v2() -> Result<()> {
106
+ let mut st = system::system_table_boot();
107
+ init(&mut st)
108
+}
109
+
110
pub(crate) fn exit() {
111
// DEBUG: The UEFI spec does not guarantee that this printout will work, as
112
// the services used by logging might already have been shut down.
0 commit comments