efi: Set EFIAPI to 32-bit ABI for FSP1_1
Because PLATFORM_USES_FSP2_X86_32 default to false when
PLATFORM_USES_FSP1_1, efi_datatype.h wrongly defines EFI as
__attribute__((__ms_abi__)).
TEST=When some code involved in the build of a platform using
FSP 1.1 such as Google/CYAN includes efi_datatype.h, it does
not hit the following error: '__ms_abi__' calling convention
is not supported for this target
Change-Id: I914f73ff06bfb801fc319b45b23d7ce4cb7a6d5d
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84402
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
dd7b671f46
commit
7e67198e41
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* Fortunately, EDK2 header allows to override EFIAPI.
|
||||
*/
|
||||
#if CONFIG(PLATFORM_USES_FSP2_X86_32)
|
||||
#if CONFIG(PLATFORM_USES_FSP1_1) || CONFIG(PLATFORM_USES_FSP2_X86_32)
|
||||
#define EFIAPI __attribute__((regparm(0)))
|
||||
#else
|
||||
#define EFIAPI __attribute__((__ms_abi__))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue