Update FPDT length

If FPDT->Length is just the size of FIRMWARE_PERFORMANCE_TABLE,
BOOT_PERFORMANCE_TABLE and S3_PERFORMANCE_TABLE are overwritten
by the next Table in ACPI init. Therefore, make the size in the
header as sizeof(INTERNAL_FIRMWARE_PERFORMANCE_TABLE) so that
the next table starts after INTERNAL_FIRMWARE_PERFORMANCE_TABLE.
Otherwise, S3 Perf Table can't be located on S3 resume path.

Signed-off-by: Sai Talamudupula <sai.kiran.talamudupula@intel.com>
This commit is contained in:
Sai Talamudupula 2019-09-30 10:33:29 -07:00 committed by Maurice Ma
parent 63c9353240
commit cb853f876b
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ UpdateFpdt (
UpdateFpdtBootTable (BootPerfTable);
// Fixup FPDT table length
Fpdt->Header.Length = sizeof (FIRMWARE_PERFORMANCE_TABLE);
Fpdt->Header.Length = sizeof (INTERNAL_FIRMWARE_PERFORMANCE_TABLE);
}
return EFI_SUCCESS;