Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uefi-raw: Use efiapi After Stabilization #1490

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions uefi-raw/src/table/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading