]>
Commit | Line | Data |
---|---|---|
3e062ea4 MK |
1 | /** @file\r |
2 | Internal library function definitions.\r | |
3 | \r | |
4 | Copyright (c) Microsoft Corporation.\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #ifndef CPU_FEATURES_LIB_H_\r | |
10 | #define CPU_FEATURES_LIB_H_\r | |
11 | \r | |
f6b86eec | 12 | #include <Guid/SmmBaseHob.h>\r |
ae62a6e4 AC |
13 | #include <Library/SmmCpuFeaturesLib.h>\r |
14 | #include <Library/BaseLib.h>\r | |
15 | #include <Library/PcdLib.h>\r | |
16 | #include <Library/MemoryAllocationLib.h>\r | |
17 | #include <Library/DebugLib.h>\r | |
f6b86eec | 18 | #include <Library/HobLib.h>\r |
ae62a6e4 | 19 | \r |
2002e950 MK |
20 | /**\r |
21 | Performs library initialization.\r | |
22 | \r | |
23 | This initialization function contains common functionality shared betwen all\r | |
24 | library instance constructors.\r | |
25 | \r | |
26 | **/\r | |
27 | VOID\r | |
28 | CpuFeaturesLibInitialization (\r | |
29 | VOID\r | |
30 | );\r | |
31 | \r | |
3e062ea4 MK |
32 | /**\r |
33 | Internal worker function that is called to complete CPU initialization at the\r | |
34 | end of SmmCpuFeaturesInitializeProcessor().\r | |
35 | \r | |
36 | **/\r | |
37 | VOID\r | |
38 | FinishSmmCpuFeaturesInitializeProcessor (\r | |
39 | VOID\r | |
40 | );\r | |
41 | \r | |
e542e05d MK |
42 | /**\r |
43 | Gets the maximum number of logical processors from the PCD PcdCpuMaxLogicalProcessorNumber.\r | |
44 | \r | |
45 | This access is abstracted from the PCD services to enforce that the PCD be\r | |
46 | FixedAtBuild in the Standalone MM build of this driver.\r | |
47 | \r | |
48 | @return The value of PcdCpuMaxLogicalProcessorNumber.\r | |
49 | \r | |
50 | **/\r | |
51 | UINT32\r | |
52 | GetCpuMaxLogicalProcessorNumber (\r | |
53 | VOID\r | |
54 | );\r | |
55 | \r | |
3e062ea4 | 56 | #endif\r |