REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3218 Adds a new function called GetCpuMaxLogicalProcessorNumber() to return the number of maximum CPU logical processors (currently gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber). This allows the the mechanism used to retrieve the CPU maximum logical processor number to be abstracted from the logic that needs the value. Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20210217213227.1277-5-mikuback@linux.microsoft.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  The CPU specific programming for PiSmmCpuDxeSmm module.
 | |
| #
 | |
| #  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = SmmCpuFeaturesLib
 | |
|   MODULE_UNI_FILE                = SmmCpuFeaturesLib.uni
 | |
|   FILE_GUID                      = FC3DC10D-D271-422a-AFF3-CBCF70344431
 | |
|   MODULE_TYPE                    = DXE_SMM_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   LIBRARY_CLASS                  = SmmCpuFeaturesLib
 | |
|   CONSTRUCTOR                    = SmmCpuFeaturesLibConstructor
 | |
| 
 | |
| [Sources]
 | |
|   CpuFeaturesLib.h
 | |
|   SmmCpuFeaturesLib.c
 | |
|   SmmCpuFeaturesLibCommon.c
 | |
|   SmmCpuFeaturesLibNoStm.c
 | |
|   TraditionalMmCpuFeaturesLib.c
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   UefiCpuPkg/UefiCpuPkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   BaseLib
 | |
|   PcdLib
 | |
|   MemoryAllocationLib
 | |
|   DebugLib
 | |
| 
 | |
| [Pcd]
 | |
|   gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber        ## SOMETIMES_CONSUMES
 |