From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id DCC289416FB for ; Tue, 23 Jan 2024 11:37:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nPNVgWxMrq6kGPIW+VQqqx4WAqWdyiz8OPycGKJQN14=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706009840; v=1; b=JO0krFaZP8yF/g5nfHzqCI+WuFNQ/P31TltNlAPnfKTwxxzptv77IUyzYvYIwHMJFj++wDvw jzJo+wtMDkqPn7mKnDrMQ7SmxZ+bLKiV+EpII75KNM/BypMC0kH2bgoRjBJBfLcSKWbHDLZ+Ve4 bs15EPf0LuNg2q8mHsmFhEYY= X-Received: by 127.0.0.2 with SMTP id kYEWYY7687511xnR6LXj1zCj; Tue, 23 Jan 2024 03:37:20 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by mx.groups.io with SMTP id smtpd.web11.10127.1706009839830423714 for ; Tue, 23 Jan 2024 03:37:19 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10961"; a="1345594" X-IronPort-AV: E=Sophos;i="6.05,214,1701158400"; d="scan'208";a="1345594" X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2024 03:37:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10961"; a="786040856" X-IronPort-AV: E=Sophos;i="6.05,214,1701158400"; d="scan'208";a="786040856" X-Received: from shwdecpdbios081.ccr.corp.intel.com ([10.239.158.50]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2024 03:37:17 -0800 From: "Huang, Qing" To: devel@edk2.groups.io Cc: Qing Huang Subject: [edk2-devel] [PATCH v1] MdePkg/BaseCpuLibNull: Add stub function of StandardSignatureIsAuthenticAMD() in CpuLibNull instance Date: Tue, 23 Jan 2024 19:36:49 +0800 Message-ID: <20240123113649.712-1-qing.huang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,qing.huang@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: OPOVt37AoijJPXvbliadmeHfx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=JO0krFaZ; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io CpuLib.h exposes StandardSignatureIsAuthenticAMD() API and we require stub function in its BaseCpuLibNull library instance to avoid potential link issue. Signed-off-by: Qing Huang --- MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c b/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c index 3ba7a35096..ba7981551d 100644 --- a/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c +++ b/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c @@ -1,7 +1,7 @@ /** @file Null instance of CPU Library. - Copyright (c) 2020, Intel Corporation. All rights reserved.
+ Copyright (c) 2020 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -35,3 +35,18 @@ CpuFlushTlb ( ) { } + +/** + Determine if the standard CPU signature is "AuthenticAMD". + + @retval TRUE The CPU signature matches. + @retval FALSE The CPU signature does not match. +**/ +BOOLEAN +EFIAPI +StandardSignatureIsAuthenticAMD ( + VOID + ) +{ + return FALSE; +} -- 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114194): https://edk2.groups.io/g/devel/message/114194 Mute This Topic: https://groups.io/mt/103907626/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-