]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/AmdSev/SecretDxe/SecretDxe.c
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / AmdSev / SecretDxe / SecretDxe.c
1 /** @file
2 Confidential Computing Secret configuration table constructor
3
4 Copyright (C) 2020 James Bottomley, IBM Corporation.
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6 **/
7 #include <PiDxe.h>
8 #include <Library/UefiBootServicesTableLib.h>
9 #include <Guid/ConfidentialComputingSecret.h>
10
11 STATIC CONFIDENTIAL_COMPUTING_SECRET_LOCATION mSecretDxeTable = {
12 FixedPcdGet32 (PcdSevLaunchSecretBase),
13 FixedPcdGet32 (PcdSevLaunchSecretSize),
14 };
15
16 EFI_STATUS
17 EFIAPI
18 InitializeSecretDxe (
19 IN EFI_HANDLE ImageHandle,
20 IN EFI_SYSTEM_TABLE *SystemTable
21 )
22 {
23 return gBS->InstallConfigurationTable (
24 &gConfidentialComputingSecretGuid,
25 &mSecretDxeTable
26 );
27 }