From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.4642.1671159679427236019 for ; Thu, 15 Dec 2022 19:01:25 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=M7hZV6CJ; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: dun.tan@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671159685; x=1702695685; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=85oM0Gp4OH3bAhwfkWJ2WU7zrkdTHOXpZeltSWcqjes=; b=M7hZV6CJgyZ/hDASiUtDIfOqbdfSwt+yNpiCvTGtCFul3XzuLk5QeKjd JNi32TnHONCoB9IM/wRCS8OuNdBitiXetnDw6Jn8m1XuGZ7Ia0DQvQ+8t 8KzZKwfAo0IWOzitiszeNqmQtBXFAb/+P6FJOoZzv6lYqvBogJct0O+uc YS2aHKfu3v6BCP0DWIPq/CrdA1MN80SlvadcaqIWn+rY9XHa6anVFZtJO 9uGhScInRyzB2fsl2aDTJ8EnoxyGjHo9Ne32dG9Eko0aBW2En4WWWdGFU 4jH1la/7pyAPE5eDDhS6a3WsqMZkmoCGWna9Aw7CuOngkOtZYaIOCltmw Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10562"; a="298537804" X-IronPort-AV: E=Sophos;i="5.96,248,1665471600"; d="scan'208";a="298537804" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 19:01:25 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10562"; a="599793640" X-IronPort-AV: E=Sophos;i="5.96,248,1665471600"; d="scan'208";a="599793640" Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.182.152]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 19:01:23 -0800 From: "duntan" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar Subject: [PATCH 2/3] UefiCpuPkg: Remove unused API in SmmCpuFeaturesLib.h Date: Fri, 16 Dec 2022 11:00:58 +0800 Message-Id: <20221216030059.1373-3-dun.tan@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20221216030059.1373-1-dun.tan@intel.com> References: <20221216030059.1373-1-dun.tan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove SmmCpuFeaturesAllocatePageTableMemory in this headfile. This API is not used by PiSmmCpuDxeSmm driver any more. Also no other files use this API. Signed-off-by: Dun Tan Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar --- UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h b/UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h index 54cae865a2..52160c7145 100644 --- a/UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h +++ b/UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h @@ -386,29 +386,4 @@ SmmCpuFeaturesCompleteSmmReadyToLock ( VOID ); -/** - This API provides a method for a CPU to allocate a specific region for storing page tables. - - This API can be called more once to allocate memory for page tables. - - Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the - allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL - is returned. If there is not enough memory remaining to satisfy the request, then NULL is - returned. - - This function can also return NULL if there is no preference on where the page tables are allocated in SMRAM. - - @param Pages The number of 4 KB pages to allocate. - - @return A pointer to the allocated buffer for page tables. - @retval NULL Fail to allocate a specific region for storing page tables, - Or there is no preference on where the page tables are allocated in SMRAM. - -**/ -VOID * -EFIAPI -SmmCpuFeaturesAllocatePageTableMemory ( - IN UINTN Pages - ); - #endif -- 2.31.1.windows.1