From 6daf0b3fdaf4f09bc1701b610a556cb665a1eb4b Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 1 Apr 2024 21:37:11 +0530 Subject: include/efi: Introduce __efiapi for EFI calling convention flexibility This patch defines __efiapi (based on EFIAPI) for coreboot-compliant EFI calls. This lays the groundwork for future 64-bit EFI calling convention support within coreboot/FSP. BUG=b:242829490 TEST=FSP debug log accessible via coreboot event handler. Change-Id: I21660f8ebeed3b9ef060118928a940a470492bb8 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/81620 Reviewed-by: Arthur Heymans Reviewed-by: Dinesh Gehlot Reviewed-by: Varshit Pandya Tested-by: build bot (Jenkins) --- src/include/efi/efi_datatype.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/efi/efi_datatype.h b/src/include/efi/efi_datatype.h index 917d0c8f22..31612b84c9 100644 --- a/src/include/efi/efi_datatype.h +++ b/src/include/efi/efi_datatype.h @@ -34,6 +34,9 @@ typedef BMP_IMAGE_HEADER efi_bmp_image_header; typedef BMP_COLOR_MAP efi_bmp_color_map; #endif +/* EFIAPI calling convention */ +#define __efiapi EFIAPI + /* Basic Data types */ /* 8-byte unsigned value. */ typedef UINT64 efi_uint64_t; -- cgit v1.2.3