From: Fu Siyuan Date: Fri, 21 Apr 2017 01:31:14 +0000 (+0800) Subject: OptionRomPkg: Fix calling convention issue for UndiRuntiumeDxe driver. X-Git-Tag: edk2-stable201903~4124 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=176eb3a17e79644a4abf1d2612e03166c4692e17 OptionRomPkg: Fix calling convention issue for UndiRuntiumeDxe driver. Add "EFIAPI" to UNDI command entry point function according to UEFI calling convention. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-by: Ye Ting Reviewed-by: Wu Jiaxin --- diff --git a/OptionRomPkg/UndiRuntimeDxe/Decode.c b/OptionRomPkg/UndiRuntimeDxe/Decode.c index 5f853479f5..cff6942691 100644 --- a/OptionRomPkg/UndiRuntimeDxe/Decode.c +++ b/OptionRomPkg/UndiRuntimeDxe/Decode.c @@ -1,7 +1,7 @@ /** @file Provides the basic UNID functions. -Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -1276,6 +1276,7 @@ UNDI_Receive ( **/ // TODO: cdb - add argument and description to function comment VOID +EFIAPI UNDI_APIEntry_new ( IN UINT64 cdb ) diff --git a/OptionRomPkg/UndiRuntimeDxe/Undi32.h b/OptionRomPkg/UndiRuntimeDxe/Undi32.h index 18341dd512..00b48f6ae0 100644 --- a/OptionRomPkg/UndiRuntimeDxe/Undi32.h +++ b/OptionRomPkg/UndiRuntimeDxe/Undi32.h @@ -1,7 +1,7 @@ /** @file EFI internal structures for the EFI UNDI driver. -Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -338,7 +338,7 @@ UNDI_Receive ( IN NIC_DATA_INSTANCE *AdapterInfo ); -VOID UNDI_APIEntry_new(UINT64); +VOID EFIAPI UNDI_APIEntry_new(UINT64); VOID UNDI_APIEntry_Common(UINT64); PXE_IPV4 convert_mcip(PXE_MAC_ADDR *);