Revision: 13543
http://edk2.svn.sourceforge.net/edk2/?rev=13543&view=rev
Author: jljusten
Date: 2012-07-18 22:34:01 +0000 (Wed, 18 Jul 2012)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Modified Paths:
--------------
trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
Modified: trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
===================================================================
--- trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c 2012-07-18 22:33:48 UTC
(rev 13542)
+++ trunk/edk2/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c 2012-07-18 22:34:01 UTC
(rev 13543)
@@ -130,34 +130,6 @@
/**
- 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 @@
ASSERT (Size >= TableSize);
//
- // Checksum ACPI table
- //
- AcpiPlatformChecksum ((UINT8*)CurrentTable, TableSize);
-
- //
// Install ACPI table
//
Status = TableInstallFunction (
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits