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.web10.11754.1671596550918694566 for ; Tue, 20 Dec 2022 20:22:36 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=MC5XbtoW; 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=1671596556; x=1703132556; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rRYw/cPo7U5/9GQi09y5QqcMf8gWuIU4/2N4zygAe18=; b=MC5XbtoWsLcyyQdM0AsQ8HrmPPpEKoQ9tym7A+TNrnL0cFri4iP10ecU sygG+rMUtj4ymLzNCojQ1bYH3CX2F9GO4WcY29x8yU52lRjJenezfD5oC evLhMwAj1Gz3POiOkzE7SV/XfCYCEYmhh/5mgZ3C+4V4BSk36XxwJhsPt 2wCW2b3V5i1NOBkp3g0kfwROhNCJtMYsDREXiAdtpKkU4gJ1z5d0gX7AC jcJ+AoiPBjvX2gPmUW97UIsf7jubpW0nP9LdyMkTUC2F+dY0LgLppnlcI wlxcN7gRuTE/Oox1rBedTOHl2n9fsjyTJPgB998JHAXLolS2hrOhOEfdF A==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="299458217" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="299458217" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 20:22:36 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="681893579" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="681893579" Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.182.152]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 20:22:35 -0800 From: "duntan" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar Subject: [Patch V2 2/3] UefiCpuPkg: Remove unused API in SmmCpuFeaturesLib.h Date: Wed, 21 Dec 2022 12:21:55 +0800 Message-Id: <20221221042156.280-3-dun.tan@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20221221042156.280-1-dun.tan@intel.com> References: <20221221042156.280-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 Reviewed-by: 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