|
1 | 1 | //! UEFI services available during boot.
|
2 | 2 |
|
| 3 | +pub use uefi_raw::table::boot::{EventType, InterfaceType, Tpl}; |
| 4 | + |
3 | 5 | use super::Revision;
|
4 | 6 | use crate::data_types::PhysicalAddress;
|
| 7 | +use crate::mem::memory_map::*; |
5 | 8 | use crate::proto::device_path::DevicePath;
|
6 | 9 | use crate::proto::loaded_image::LoadedImage;
|
7 | 10 | use crate::proto::media::fs::SimpleFileSystem;
|
8 | 11 | use crate::proto::{Protocol, ProtocolPointer};
|
9 | 12 | use crate::util::opt_nonnull_to_ptr;
|
10 | 13 | use crate::{Char16, Error, Event, Guid, Handle, Result, Status, StatusExt};
|
| 14 | +#[cfg(feature = "alloc")] |
| 15 | +use alloc::vec::Vec; |
11 | 16 | use core::cell::UnsafeCell;
|
12 | 17 | use core::ffi::c_void;
|
| 18 | +use core::fmt::Debug; |
13 | 19 | use core::mem::{self, MaybeUninit};
|
14 | 20 | use core::ops::{Deref, DerefMut};
|
15 | 21 | use core::ptr::NonNull;
|
16 | 22 | use core::sync::atomic::{AtomicPtr, Ordering};
|
17 | 23 | use core::{ptr, slice};
|
18 | 24 |
|
19 |
| -#[cfg(feature = "alloc")] |
20 |
| -use alloc::vec::Vec; |
21 |
| -use core::fmt::Debug; |
22 |
| - |
23 |
| -#[deprecated = "Use the `uefi::mem::memory_map` module."] |
24 |
| -pub use crate::mem::memory_map::*; |
25 |
| -pub use uefi_raw::table::boot::{EventType, InterfaceType, Tpl}; |
26 |
| - |
27 | 25 | /// Global image handle. This is only set by `BootServices::set_image_handle`,
|
28 | 26 | /// and it is only read by `BootServices::image_handle`.
|
29 | 27 | static IMAGE_HANDLE: AtomicPtr<c_void> = AtomicPtr::new(ptr::null_mut());
|
|
0 commit comments