TianoCore EDK2 master
Loading...
Searching...
No Matches
SecretDxe.c
Go to the documentation of this file.
1
7#include <PiDxe.h>
10
12EFIAPI
13InitializeSecretDxe (
14 IN EFI_HANDLE ImageHandle,
15 IN EFI_SYSTEM_TABLE *SystemTable
16 )
17{
18 EFI_STATUS Status;
20
21 Status = gBS->AllocatePool (
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}
#define IN
Definition: Base.h:279
#define FixedPcdGet32(TokenName)
Definition: PcdLib.h:92
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_BOOT_SERVICES * gBS
@ EfiACPIReclaimMemory