2 Standalone MM CPU specific programming.
4 Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
5 Copyright (c) Microsoft Corporation.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <Library/PcdLib.h>
12 #include "CpuFeaturesLib.h"
15 Gets the maximum number of logical processors from the PCD PcdCpuMaxLogicalProcessorNumber.
17 This access is abstracted from the PCD services to enforce that the PCD be
18 FixedAtBuild in the Standalone MM build of this driver.
20 @return The value of PcdCpuMaxLogicalProcessorNumber.
24 GetCpuMaxLogicalProcessorNumber (
28 return FixedPcdGet32 (PcdCpuMaxLogicalProcessorNumber
);
32 The Standalone MM library constructor.
34 @param[in] ImageHandle Image handle of this driver.
35 @param[in] SystemTable A Pointer to the EFI System Table.
37 @retval EFI_SUCCESS This constructor always returns success.
42 StandaloneMmCpuFeaturesLibConstructor (
43 IN EFI_HANDLE ImageHandle
,
44 IN EFI_MM_SYSTEM_TABLE
*SystemTable
47 CpuFeaturesLibInitialization ();