From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 723132195406F for ; Thu, 20 Apr 2017 18:32:40 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP; 20 Apr 2017 18:32:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,227,1488873600"; d="scan'208";a="1138371212" Received: from sfu5-mobl3.ccr.corp.intel.com ([10.239.193.185]) by fmsmga001.fm.intel.com with ESMTP; 20 Apr 2017 18:32:39 -0700 From: Fu Siyuan To: edk2-devel@lists.01.org Cc: Ye Ting , Wu Jiaxin Date: Fri, 21 Apr 2017 09:32:34 +0800 Message-Id: <1492738354-14220-1-git-send-email-siyuan.fu@intel.com> X-Mailer: git-send-email 2.7.4.windows.1 Subject: [Patch] OptionRomPkg: Fix calling convention issue for UndiRuntiumeDxe driver. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2017 01:32:40 -0000 Add "EFIAPI" to UNDI command entry point function according to UEFI calling convention. Cc: Ye Ting Cc: Wu Jiaxin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan --- OptionRomPkg/UndiRuntimeDxe/Decode.c | 3 ++- OptionRomPkg/UndiRuntimeDxe/Undi32.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OptionRomPkg/UndiRuntimeDxe/Decode.c b/OptionRomPkg/UndiRuntimeDxe/Decode.c index 5f85347..cff6942 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 18341dd..00b48f6 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 *); -- 2.7.4.windows.1