Skip to content

Commit

Permalink
uefi: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Aug 13, 2024
1 parent 48e0104 commit 55d701e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions uefi/src/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,35 @@
//!
//! These functions will panic if called after exiting boot services.

pub use crate::table::boot::{
AllocateType, EventNotifyFn, LoadImageSource, OpenProtocolAttributes, OpenProtocolParams,
ProtocolSearchKey, SearchType, TimerTrigger,
};
pub use uefi_raw::table::boot::{EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl};

use crate::data_types::PhysicalAddress;
use crate::mem::memory_map::{MemoryMapBackingMemory, MemoryMapKey, MemoryMapMeta, MemoryMapOwned};
use crate::polyfill::maybe_uninit_slice_assume_init_ref;
use crate::proto::device_path::DevicePath;
#[cfg(doc)]
use crate::proto::device_path::LoadedImageDevicePath;
use crate::proto::loaded_image::LoadedImage;
use crate::proto::media::fs::SimpleFileSystem;
use crate::proto::{Protocol, ProtocolPointer};
use crate::runtime::{self, ResetType};
use crate::table::Revision;
use crate::util::opt_nonnull_to_ptr;
use crate::{table, Char16, Error, Event, Guid, Handle, Result, Status, StatusExt};
use core::ffi::c_void;
use core::mem::MaybeUninit;
use core::ops::{Deref, DerefMut};
use core::ptr::{self, NonNull};
use core::sync::atomic::{AtomicPtr, Ordering};
use core::{mem, slice};
use uefi::{table, Char16, Error, Event, Guid, Handle, Result, Status, StatusExt};
use uefi_raw::table::boot::InterfaceType;

#[cfg(doc)]
use crate::proto::device_path::LoadedImageDevicePath;
#[cfg(feature = "alloc")]
use {alloc::vec::Vec, uefi::ResultExt};

pub use uefi::table::boot::{
AllocateType, EventNotifyFn, LoadImageSource, OpenProtocolAttributes, OpenProtocolParams,
ProtocolSearchKey, SearchType, TimerTrigger,
};
pub use uefi_raw::table::boot::{EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl};

/// Global image handle. This is only set by [`set_image_handle`], and it is
/// only read by [`image_handle`].
static IMAGE_HANDLE: AtomicPtr<c_void> = AtomicPtr::new(ptr::null_mut());
Expand Down

0 comments on commit 55d701e

Please sign in to comment.