From 47106899a42da7d07a0c6e4f48e66ee44403bb66 Mon Sep 17 00:00:00 2001 From: andre-braga Date: Fri, 10 May 2024 21:34:08 +0000 Subject: [PATCH] Match MaximumCapsuleSize to UEFI spec Per section 8.5.3.4 of the latest UEFI spec [1], `QueryCapsuleCapabilities` uses a uint64 for MaximumCapsuleSize, not a usize. [1]:https://uefi.org/sites/default/files/resources/UEFI_Spec_2_10_Aug29.pdf --- uefi-raw/CHANGELOG.md | 2 ++ uefi-raw/src/table/runtime.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/uefi-raw/CHANGELOG.md b/uefi-raw/CHANGELOG.md index c9014782c..15a8d793f 100644 --- a/uefi-raw/CHANGELOG.md +++ b/uefi-raw/CHANGELOG.md @@ -1,5 +1,7 @@ # uefi-raw - [Unreleased] +## Changed +- `maximum_capsule_size` of `query_capsule_capabilities` now takes a *mut u64 instead of a *mut usize. # uefi-raw - 0.5.2 (2024-04-19) diff --git a/uefi-raw/src/table/runtime.rs b/uefi-raw/src/table/runtime.rs index e6474e71d..088118272 100644 --- a/uefi-raw/src/table/runtime.rs +++ b/uefi-raw/src/table/runtime.rs @@ -66,7 +66,7 @@ pub struct RuntimeServices { pub query_capsule_capabilities: unsafe extern "efiapi" fn( capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, - maximum_capsule_size: *mut usize, + maximum_capsule_size: *mut u64, reset_type: *mut ResetType, ) -> Status,