From 453bedb3d533fc64013e7b4ede548b452961192f Mon Sep 17 00:00:00 2001 From: Isaac Elliott Date: Sat, 8 Jun 2024 09:42:10 +1000 Subject: [PATCH] Add #[repr(C)] to AllocateType EFI_ALLOCATE_TYPE is a C enum (https://uefi.org/specs/UEFI/2.10/07_Services_Boot_Services.html?highlight=efi_allocate_type#efi-boot-services-allocatepages), and it's used in protocols such as the PCI Root Bridge I/O protocol (https://uefi.org/specs/UEFI/2.10/14_Protocols_PCI_Bus_Support.html#efi-pci-root-bridge-io-protocol-allocatebuffer). --- uefi/src/table/boot.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/uefi/src/table/boot.rs b/uefi/src/table/boot.rs index 1a5e44876..cf42145eb 100644 --- a/uefi/src/table/boot.rs +++ b/uefi/src/table/boot.rs @@ -1585,6 +1585,7 @@ impl<'a, P: Protocol + ?Sized> ScopedProtocol<'a, P> { } /// Type of allocation to perform. +#[repr(C)] #[derive(Debug, Copy, Clone)] pub enum AllocateType { /// Allocate any possible pages.