]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Library/SmmCpuFeaturesLib/TraditionalMmCpuFeaturesLib.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / UefiCpuPkg / Library / SmmCpuFeaturesLib / TraditionalMmCpuFeaturesLib.c
1 /** @file
2 Traditional MM CPU specific programming.
3
4 Copyright (c) Microsoft Corporation.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Base.h>
10 #include <Library/PcdLib.h>
11 #include "CpuFeaturesLib.h"
12
13 /**
14 Gets the maximum number of logical processors from the PCD PcdCpuMaxLogicalProcessorNumber.
15
16 This access is abstracted from the PCD services to enforce that the PCD be
17 FixedAtBuild in the Standalone MM build of this driver.
18
19 @return The value of PcdCpuMaxLogicalProcessorNumber.
20
21 **/
22 UINT32
23 GetCpuMaxLogicalProcessorNumber (
24 VOID
25 )
26 {
27 return PcdGet32 (PcdCpuMaxLogicalProcessorNumber);
28 }