mirror of https://github.com/acidanthera/audk.git
OvmfPkg: refine TdTcg2Dxe
This patch removes unused references to ResetNotification code. ACPI table generation refined by removing excessive CopyMem() call. Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This commit is contained in:
parent
d512bd3129
commit
be38c01da2
|
@ -23,7 +23,6 @@
|
||||||
#include <Protocol/VariableWrite.h>
|
#include <Protocol/VariableWrite.h>
|
||||||
#include <Protocol/Tcg2Protocol.h>
|
#include <Protocol/Tcg2Protocol.h>
|
||||||
#include <Protocol/TrEEProtocol.h>
|
#include <Protocol/TrEEProtocol.h>
|
||||||
#include <Protocol/ResetNotification.h>
|
|
||||||
#include <Protocol/AcpiTable.h>
|
#include <Protocol/AcpiTable.h>
|
||||||
|
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
@ -2355,7 +2354,6 @@ InstallAcpiTable (
|
||||||
UINTN TableKey;
|
UINTN TableKey;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_ACPI_TABLE_PROTOCOL *AcpiTable;
|
EFI_ACPI_TABLE_PROTOCOL *AcpiTable;
|
||||||
UINT64 OemTableId;
|
|
||||||
|
|
||||||
Status = gBS->LocateProtocol (&gEfiAcpiTableProtocolGuid, NULL, (VOID **)&AcpiTable);
|
Status = gBS->LocateProtocol (&gEfiAcpiTableProtocolGuid, NULL, (VOID **)&AcpiTable);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
@ -2366,8 +2364,7 @@ InstallAcpiTable (
|
||||||
mTdxEventlogAcpiTemplate.Laml = (UINT64)PcdGet32 (PcdCcEventlogAcpiTableLaml);
|
mTdxEventlogAcpiTemplate.Laml = (UINT64)PcdGet32 (PcdCcEventlogAcpiTableLaml);
|
||||||
mTdxEventlogAcpiTemplate.Lasa = PcdGet64 (PcdCcEventlogAcpiTableLasa);
|
mTdxEventlogAcpiTemplate.Lasa = PcdGet64 (PcdCcEventlogAcpiTableLasa);
|
||||||
CopyMem (mTdxEventlogAcpiTemplate.Header.OemId, PcdGetPtr (PcdAcpiDefaultOemId), sizeof (mTdxEventlogAcpiTemplate.Header.OemId));
|
CopyMem (mTdxEventlogAcpiTemplate.Header.OemId, PcdGetPtr (PcdAcpiDefaultOemId), sizeof (mTdxEventlogAcpiTemplate.Header.OemId));
|
||||||
OemTableId = PcdGet64 (PcdAcpiDefaultOemTableId);
|
mTdxEventlogAcpiTemplate.Header.OemTableId = PcdGet64 (PcdAcpiDefaultOemTableId);
|
||||||
CopyMem (&mTdxEventlogAcpiTemplate.Header.OemTableId, &OemTableId, sizeof (UINT64));
|
|
||||||
mTdxEventlogAcpiTemplate.Header.OemRevision = PcdGet32 (PcdAcpiDefaultOemRevision);
|
mTdxEventlogAcpiTemplate.Header.OemRevision = PcdGet32 (PcdAcpiDefaultOemRevision);
|
||||||
mTdxEventlogAcpiTemplate.Header.CreatorId = PcdGet32 (PcdAcpiDefaultCreatorId);
|
mTdxEventlogAcpiTemplate.Header.CreatorId = PcdGet32 (PcdAcpiDefaultCreatorId);
|
||||||
mTdxEventlogAcpiTemplate.Header.CreatorRevision = PcdGet32 (PcdAcpiDefaultCreatorRevision);
|
mTdxEventlogAcpiTemplate.Header.CreatorRevision = PcdGet32 (PcdAcpiDefaultCreatorRevision);
|
||||||
|
|
|
@ -73,7 +73,6 @@
|
||||||
gEfiCcMeasurementProtocolGuid ## PRODUCES
|
gEfiCcMeasurementProtocolGuid ## PRODUCES
|
||||||
gEfiMpServiceProtocolGuid ## SOMETIMES_CONSUMES
|
gEfiMpServiceProtocolGuid ## SOMETIMES_CONSUMES
|
||||||
gEfiVariableWriteArchProtocolGuid ## NOTIFY
|
gEfiVariableWriteArchProtocolGuid ## NOTIFY
|
||||||
gEfiResetNotificationProtocolGuid ## CONSUMES
|
|
||||||
gEfiAcpiTableProtocolGuid ## NOTIFY
|
gEfiAcpiTableProtocolGuid ## NOTIFY
|
||||||
|
|
||||||
[Pcd]
|
[Pcd]
|
||||||
|
|
Loading…
Reference in New Issue