TianoCore EDK2
master
Loading...
Searching...
No Matches
SecretDxe.c
Go to the documentation of this file.
1
7
#include <
PiDxe.h
>
8
#include <
Library/UefiBootServicesTableLib.h
>
9
#include <
Guid/ConfidentialComputingSecret.h
>
10
11
EFI_STATUS
12
EFIAPI
13
InitializeSecretDxe (
14
IN
EFI_HANDLE
ImageHandle,
15
IN
EFI_SYSTEM_TABLE
*SystemTable
16
)
17
{
18
EFI_STATUS
Status;
19
CONFIDENTIAL_COMPUTING_SECRET_LOCATION
*SecretDxeTable;
20
21
Status =
gBS
->AllocatePool (
22
EfiACPIReclaimMemory
,
23
sizeof
(
CONFIDENTIAL_COMPUTING_SECRET_LOCATION
),
24
(VOID **)&SecretDxeTable
25
);
26
if
(EFI_ERROR (Status)) {
27
return
Status;
28
}
29
30
SecretDxeTable->Base =
FixedPcdGet32
(PcdSevLaunchSecretBase);
31
SecretDxeTable->Size =
FixedPcdGet32
(PcdSevLaunchSecretSize);
32
33
return
gBS
->InstallConfigurationTable (
34
&gConfidentialComputingSecretGuid,
35
SecretDxeTable
36
);
37
}
ConfidentialComputingSecret.h
IN
#define IN
Definition:
Base.h:279
FixedPcdGet32
#define FixedPcdGet32(TokenName)
Definition:
PcdLib.h:92
PiDxe.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
UefiBootServicesTableLib.h
gBS
EFI_BOOT_SERVICES * gBS
Definition:
UefiBootServicesTableLib.c:17
EfiACPIReclaimMemory
@ EfiACPIReclaimMemory
Definition:
UefiMultiPhase.h:82
CONFIDENTIAL_COMPUTING_SECRET_LOCATION
Definition:
ConfidentialComputingSecret.h:21
EFI_SYSTEM_TABLE
Definition:
UefiSpec.h:2028
OvmfPkg
AmdSev
SecretDxe
SecretDxe.c
Generated on Fri Nov 15 2024 18:01:20 for TianoCore EDK2 by
1.9.6