Skip to content

Commit

Permalink
Merge pull request rust-osdev#1417 from nicholasbishop/bishop-more-bt…
Browse files Browse the repository at this point in the history
…-cleanup-2

uefi: Delete the deprecated `uefi::table::{boot,system}` modules
  • Loading branch information
phip1611 authored Oct 1, 2024
2 parents 14a0d14 + b9c4944 commit 96b27c7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1,671 deletions.
7 changes: 4 additions & 3 deletions uefi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ See [Deprecating SystemTable/BootServices/RuntimeServices][funcmigrate] for
details of the deprecated items that were removed in this release.

## Changed
- **Breaking:** Deleted the deprecated `RuntimeServices` struct.
- **Breaking:** Deleted the deprecated `BootServices`, `RuntimeServices`, and
`SystemTable` structs.
- **Breaking:** Deleted deprecated functions `allocator::init`,
`allocator::exit_boot_services`, `helpers::system_table`, and
`table::system_table_runtime`.
`allocator::exit_boot_services`, `helpers::system_table`,
`table::system_table_boot`, and `table::system_table_runtime`.
- **Breaking:** `FileSystem` no longer has a lifetime parameter, and the
deprecated conversion from `uefi::table::boot::ScopedProtocol` has been
removed.
Expand Down
6 changes: 0 additions & 6 deletions uefi/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@
pub use crate::{
boot, cstr16, cstr8, entry, runtime, system, Handle, ResultExt, Status, StatusExt,
};

// Import the basic table types.
#[allow(deprecated)]
pub use crate::table::boot::BootServices;
#[allow(deprecated)]
pub use crate::table::{Boot, SystemTable};
6 changes: 3 additions & 3 deletions uefi/src/proto/security/memory_protection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl MemoryProtection {
/// [`EXECUTE_PROTECT`]: MemoryAttribute::EXECUTE_PROTECT
/// [`READ_ONLY`]: MemoryAttribute::READ_ONLY
/// [`Status::NO_MAPPING`]: crate::Status::NO_MAPPING
/// [UEFI page size]: uefi::table::boot::PAGE_SIZE
/// [UEFI page size]: uefi::boot::PAGE_SIZE
pub fn get_memory_attributes(
&self,
byte_region: Range<PhysicalAddress>,
Expand All @@ -53,7 +53,7 @@ impl MemoryProtection {
/// [`READ_PROTECT`]: MemoryAttribute::READ_PROTECT
/// [`EXECUTE_PROTECT`]: MemoryAttribute::EXECUTE_PROTECT
/// [`READ_ONLY`]: MemoryAttribute::READ_ONLY
/// [UEFI page size]: uefi::table::boot::PAGE_SIZE
/// [UEFI page size]: uefi::boot::PAGE_SIZE
pub fn set_memory_attributes(
&self,
byte_region: Range<PhysicalAddress>,
Expand All @@ -76,7 +76,7 @@ impl MemoryProtection {
/// [`READ_PROTECT`]: MemoryAttribute::READ_PROTECT
/// [`EXECUTE_PROTECT`]: MemoryAttribute::EXECUTE_PROTECT
/// [`READ_ONLY`]: MemoryAttribute::READ_ONLY
/// [UEFI page size]: uefi::table::boot::PAGE_SIZE
/// [UEFI page size]: uefi::boot::PAGE_SIZE
pub fn clear_memory_attributes(
&self,
byte_region: Range<PhysicalAddress>,
Expand Down
Loading

0 comments on commit 96b27c7

Please sign in to comment.