blob: dec6e53e5b5542ea200aef9393f3c4195ed50443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/** @file
Standalone MM CPU specific programming.
Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiMm.h>
#include <Library/PcdLib.h>
#include "CpuFeaturesLib.h"
/**
Gets the maximum number of logical processors from the PCD PcdCpuMaxLogicalProcessorNumber.
This access is abstracted from the PCD services to enforce that the PCD be
FixedAtBuild in the Standalone MM build of this driver.
@return The value of PcdCpuMaxLogicalProcessorNumber.
**/
UINT32
GetCpuMaxLogicalProcessorNumber (
VOID
)
{
return FixedPcdGet32 (PcdCpuMaxLogicalProcessorNumber);
}
/**
The Standalone MM library constructor.
@param[in] ImageHandle Image handle of this driver.
@param[in] SystemTable A Pointer to the EFI System Table.
@retval EFI_SUCCESS This constructor always returns success.
**/
EFI_STATUS
EFIAPI
StandaloneMmCpuFeaturesLibConstructor (
IN EFI_HANDLE ImageHandle,
IN EFI_MM_SYSTEM_TABLE *SystemTable
)
{
CpuFeaturesLibInitialization ();
return EFI_SUCCESS;
}
|