From 2f4d9788fcd94abf219486dac4d3ad5c102984e9 Mon Sep 17 00:00:00 2001 From: "HTGAzureX1212." <39023054+HTGAzureX1212@users.noreply.github.com> Date: Wed, 4 Dec 2024 10:24:50 +0800 Subject: [PATCH] Use `efiapi` After Stabilization --- uefi-raw/src/table/boot.rs | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/uefi-raw/src/table/boot.rs b/uefi-raw/src/table/boot.rs index 8559a4c28..78705a13b 100644 --- a/uefi-raw/src/table/boot.rs +++ b/uefi-raw/src/table/boot.rs @@ -189,28 +189,10 @@ pub struct BootServices { out_proto: *mut *mut c_void, ) -> Status, - /// Warning: this function pointer is declared as `extern "C"` rather than - /// `extern "efiapi". That means it will work correctly when called from a - /// UEFI target (`*-unknown-uefi`), but will not work when called from a - /// target with a different calling convention such as - /// `x86_64-unknown-linux-gnu`. - /// - /// Support for C-variadics with `efiapi` requires the unstable - /// [`extended_varargs_abi_support`](https://github.com/rust-lang/rust/issues/100189) - /// feature. + // Multi-protocol handlers pub install_multiple_protocol_interfaces: - unsafe extern "C" fn(handle: *mut Handle, ...) -> Status, - - /// Warning: this function pointer is declared as `extern "C"` rather than - /// `extern "efiapi". That means it will work correctly when called from a - /// UEFI target (`*-unknown-uefi`), but will not work when called from a - /// target with a different calling convention such as - /// `x86_64-unknown-linux-gnu`. - /// - /// Support for C-variadics with `efiapi` requires the unstable - /// [`extended_varargs_abi_support`](https://github.com/rust-lang/rust/issues/100189) - /// feature. - pub uninstall_multiple_protocol_interfaces: unsafe extern "C" fn(handle: Handle, ...) -> Status, + unsafe extern "efiapi" fn(handle: *mut Handle, ...) -> Status, + pub uninstall_multiple_protocol_interfaces: unsafe extern "efiapi" fn(handle: Handle, ...) -> Status, // CRC services pub calculate_crc32: