Skip to content

Commit 1970c81

Browse files
uefi: Deprecate helpers::system_table
This functionality is available with `table::system_table_boot` now.
1 parent 2a63b9e commit 1970c81

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: uefi/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
documentation for details of obligations for callers.
2020
- `BootServices::allocate_pool` now returns `NonZero<u8>` instead of
2121
`*mut u8`.
22+
- `helpers::system_table` is deprecated, use `table::system_table_boot` instead.
2223

2324
## Removed
2425
- Removed the `panic-on-logger-errors` feature of the `uefi` crate. Logger

Diff for: uefi/src/helpers/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mod println;
4040
///
4141
/// The returned pointer is only valid until boot services are exited.
4242
#[must_use]
43-
// TODO do we want to keep this public?
43+
#[deprecated(note = "use uefi::table::system_table_boot instead")]
4444
pub fn system_table() -> SystemTable<Boot> {
4545
table::system_table_boot().expect("boot services are not active")
4646
}

0 commit comments

Comments
 (0)