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