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 <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
This commit is contained in:
Fu Siyuan 2017-04-21 09:31:14 +08:00
parent f6b139bde7
commit 176eb3a17e
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
Provides the basic UNID functions. Provides the basic UNID functions.
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 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 // TODO: cdb - add argument and description to function comment
VOID VOID
EFIAPI
UNDI_APIEntry_new ( UNDI_APIEntry_new (
IN UINT64 cdb IN UINT64 cdb
) )

View File

@ -1,7 +1,7 @@
/** @file /** @file
EFI internal structures for the EFI UNDI driver. EFI internal structures for the EFI UNDI driver.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 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 IN NIC_DATA_INSTANCE *AdapterInfo
); );
VOID UNDI_APIEntry_new(UINT64); VOID EFIAPI UNDI_APIEntry_new(UINT64);
VOID UNDI_APIEntry_Common(UINT64); VOID UNDI_APIEntry_Common(UINT64);
PXE_IPV4 convert_mcip(PXE_MAC_ADDR *); PXE_IPV4 convert_mcip(PXE_MAC_ADDR *);