diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-18 22:34:01 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-07-18 22:34:01 +0000 |
commit | b5c91f01d257207c3b19f91057c50faf66af47ed (patch) | |
tree | cc58bcb645335a88ddeff46c82b2327a40bf57a6 /OvmfPkg/AcpiPlatformDxe | |
parent | 4804ef4943d6b22a4d86e5d05f717af28d4ca82e (diff) | |
download | edk2-platforms-b5c91f01d257207c3b19f91057c50faf66af47ed.tar.xz |
OvmfPkg/AcpiPlatformDxe: rely on built-in checksumming
Implementation in
"MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c":
InstallAcpiTable()
SetAcpiTable(... Checksum=TRUE ...)
AddTableToList(... Checksum=TRUE ...)
AcpiPlatformChecksum()
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13543 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/AcpiPlatformDxe')
-rw-r--r-- | OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c index 47f32e2f76..6e0b6100b5 100644 --- a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c +++ b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c @@ -130,34 +130,6 @@ LocateFvInstanceWithTables ( /**
- This function calculates and updates an UINT8 checksum.
-
- @param Buffer Pointer to buffer to checksum
- @param Size Number of bytes to checksum
-
-**/
-VOID
-AcpiPlatformChecksum (
- IN UINT8 *Buffer,
- IN UINTN Size
- )
-{
- UINTN ChecksumOffset;
-
- ChecksumOffset = OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER, Checksum);
-
- //
- // Set checksum to 0 first
- //
- Buffer[ChecksumOffset] = 0;
-
- //
- // Update checksum value
- //
- Buffer[ChecksumOffset] = CalculateCheckSum8(Buffer, Size);
-}
-
-/**
Find ACPI tables in an FV and parses them. This function is useful for QEMU and KVM.
@param AcpiTable Protocol instance pointer
@@ -220,11 +192,6 @@ FindAcpiTablesInFv ( ASSERT (Size >= TableSize);
//
- // Checksum ACPI table
- //
- AcpiPlatformChecksum ((UINT8*)CurrentTable, TableSize);
-
- //
// Install ACPI table
//
Status = TableInstallFunction (
|