]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | CPU MP Initialize Library common functions (NULL instance) for Td guest.\r | |
3 | \r | |
4 | Copyright (c) 2020 - 2022, Intel Corporation. All rights reserved.<BR>\r | |
5 | \r | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
7 | \r | |
8 | **/\r | |
9 | \r | |
10 | #include "MpLib.h"\r | |
11 | #include "MpIntelTdx.h"\r | |
12 | \r | |
13 | /**\r | |
14 | Gets detailed MP-related information on the requested processor at the\r | |
15 | instant this call is made. This service may only be called from the BSP.\r | |
16 | \r | |
17 | @param[in] ProcessorNumber The handle number of processor.\r | |
18 | @param[out] ProcessorInfoBuffer A pointer to the buffer where information for\r | |
19 | the requested processor is deposited.\r | |
20 | @param[out] HealthData Return processor health data.\r | |
21 | \r | |
22 | @retval EFI_SUCCESS Processor information was returned.\r | |
23 | @retval EFI_DEVICE_ERROR The calling processor is an AP.\r | |
24 | @retval EFI_INVALID_PARAMETER ProcessorInfoBuffer is NULL.\r | |
25 | @retval EFI_NOT_FOUND The processor with the handle specified by\r | |
26 | ProcessorNumber does not exist in the platform.\r | |
27 | @retval EFI_NOT_READY MP Initialize Library is not initialized.\r | |
28 | \r | |
29 | **/\r | |
30 | EFI_STATUS\r | |
31 | TdxMpInitLibGetProcessorInfo (\r | |
32 | IN UINTN ProcessorNumber,\r | |
33 | OUT EFI_PROCESSOR_INFORMATION *ProcessorInfoBuffer,\r | |
34 | OUT EFI_HEALTH_FLAGS *HealthData OPTIONAL\r | |
35 | )\r | |
36 | {\r | |
37 | ASSERT (FALSE);\r | |
38 | return EFI_UNSUPPORTED;\r | |
39 | }\r | |
40 | \r | |
41 | /**\r | |
42 | Retrieves the number of logical processor in the platform and the number of\r | |
43 | those logical processors that are enabled on this boot. This service may only\r | |
44 | be called from the BSP.\r | |
45 | \r | |
46 | @param[out] NumberOfProcessors Pointer to the total number of logical\r | |
47 | processors in the system, including the BSP\r | |
48 | and disabled APs.\r | |
49 | @param[out] NumberOfEnabledProcessors Pointer to the number of enabled logical\r | |
50 | processors that exist in system, including\r | |
51 | the BSP.\r | |
52 | \r | |
53 | @retval EFI_SUCCESS The number of logical processors and enabled\r | |
54 | logical processors was retrieved.\r | |
55 | @retval EFI_DEVICE_ERROR The calling processor is an AP.\r | |
56 | @retval EFI_INVALID_PARAMETER NumberOfProcessors is NULL and NumberOfEnabledProcessors\r | |
57 | is NULL.\r | |
58 | @retval EFI_NOT_READY MP Initialize Library is not initialized.\r | |
59 | \r | |
60 | **/\r | |
61 | EFI_STATUS\r | |
62 | TdxMpInitLibGetNumberOfProcessors (\r | |
63 | OUT UINTN *NumberOfProcessors, OPTIONAL\r | |
64 | OUT UINTN *NumberOfEnabledProcessors OPTIONAL\r | |
65 | )\r | |
66 | {\r | |
67 | ASSERT (FALSE);\r | |
68 | return EFI_UNSUPPORTED;\r | |
69 | }\r |