Last change
on this file since 105681 was 99404, checked in by vboxsync, 2 years ago |
Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Line | |
---|
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 | 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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.