uefi-raw: fix Volatile parameter of ShellProtocol::get_alias

The UEFI Shell spec 2.2 defines EFI_SHELL_GET_ALIAS as

  CONST CHAR16 * (EFIAPI *EFI_SHELL_GET_ALIAS)(
    IN  CONST CHAR16 *Alias,
    OUT BOOLEAN      *Volatile OPTIONAL);
This commit is contained in:
Philipp Schuster 2026-08-23 12:17:43 +02:00
parent 549e785328
commit 0e8bab3e9a
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,8 @@
## Changed
- **Breaking**: `MemoryDescriptor` now has a new member to ensure correct
layout on all non-UEFI 32-bit targets.
- **Breaking**: Corrected the `volatile` parameter of
`ShellProtocol::get_alias` from `Boolean` to `*mut Boolean`.
- **Breaking**: The USB descriptor types in `protocol::usb` are now packed to
match their layout in the USB specification. `ConfigDescriptor` and
`EndpointDescriptor` previously had a too-large `size_of`.

View file

@ -61,7 +61,7 @@ pub struct ShellProtocol {
volatile: Boolean,
) -> Status,
pub get_alias:
unsafe extern "efiapi" fn(alias: *const Char16, volatile: Boolean) -> *const Char16,
unsafe extern "efiapi" fn(alias: *const Char16, volatile: *mut Boolean) -> *const Char16,
pub set_alias: unsafe extern "efiapi" fn(
command: *const Char16,
alias: *const Char16,