/* This function updates AML table checksum. It will search the ACPI table installed by ACPI_TABLE protocol. */
EFI_STATUS SdtUpdateAmlChecksum(IN VOID *Buffer)
/* This function updates AML table checksum. It will search the ACPI table installed by ACPI_TABLE protocol. */
EFI_STATUS SdtUpdateAmlChecksum(IN VOID *Buffer)
{
  EFI_ACPI_TABLE_LIST  *CurrentTableList;
  CurrentTableList = FindTableByBuffer (Buffer);
  if (CurrentTableList == NULL) {
    return EFI_NOT_FOUND;
  }
  AcpiPlatformChecksum (
    (VOID *)CurrentTableList->Table,
    CurrentTableList->Table->Length,
    OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER, Checksum)
    );
  return EFI_SUCCESS;
}