/* This function calculates and updates an UINT8 checksum. */
VOID AcpiPlatformChecksum(IN UINT8 *Buffer, IN UINTN Size)
/* This function calculates and updates an UINT8 checksum. */
VOID AcpiPlatformChecksum(IN UINT8 *Buffer, IN UINTN Size)
{
  UINTN  ChecksumOffset;
  ChecksumOffset = OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER, Checksum);
  Buffer[ChecksumOffset] = 0;
  Buffer[ChecksumOffset] = CalculateCheckSum8 (Buffer, Size);
}