]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OptionRomPkg: Fix calling convention issue for UndiRuntiumeDxe driver.
authorFu Siyuan <siyuan.fu@intel.com>
Fri, 21 Apr 2017 01:31:14 +0000 (09:31 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Mon, 24 Apr 2017 02:10:45 +0000 (10:10 +0800)
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>
OptionRomPkg/UndiRuntimeDxe/Decode.c
OptionRomPkg/UndiRuntimeDxe/Undi32.h

index 5f853479f550e1ebdf0b1fcf08603c9c14cc874f..cff694269144bce2e8c5b3124dc3a85bb91ac516 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides the basic UNID functions.\r
 \r
-Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -1276,6 +1276,7 @@ UNDI_Receive (
 **/\r
 // TODO:    cdb - add argument and description to function comment\r
 VOID\r
+EFIAPI\r
 UNDI_APIEntry_new (\r
   IN  UINT64 cdb\r
   )\r
index 18341dd5128a70fa226a95e1b1d8bb7517eaf100..00b48f6ae09f763bcaa4b7700e137aaca014d8f4 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   EFI internal structures for the EFI UNDI driver.\r
 \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -338,7 +338,7 @@ UNDI_Receive (
   IN  NIC_DATA_INSTANCE *AdapterInfo\r
   );\r
 \r
-VOID UNDI_APIEntry_new(UINT64);\r
+VOID EFIAPI UNDI_APIEntry_new(UINT64);\r
 VOID UNDI_APIEntry_Common(UINT64);\r
 \r
 PXE_IPV4 convert_mcip(PXE_MAC_ADDR *);\r