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