summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-15 05:34:57 +0000
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-15 05:34:57 +0000
commit71824dd8dbcf54019de02a8ec112266222afb98e (patch)
tree435adb5d69bf2063c7613132736188ecd6ae4619 /MdeModulePkg
parentfab1046560e520486f255093cbb4fe36a347f93a (diff)
downloadedk2-platforms-71824dd8dbcf54019de02a8ec112266222afb98e.tar.xz
InstallAcpiTable() - Do not update the checksum in the passed in buffer – the buffer is an IN buffer and should be treated as such.
signed-off-by: jyao1 reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12869 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c
index b911a346c0..6505de8bed 100644
--- a/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c
+++ b/MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c
@@ -317,8 +317,6 @@ InstallAcpiTable (
EFI_ACPI_TABLE_INSTANCE *AcpiTableInstance;
EFI_STATUS Status;
VOID *AcpiTableBufferConst;
- UINT32 Length;
- UINT8 Checksum;
//
// Check for invalid input parameters
@@ -328,16 +326,6 @@ InstallAcpiTable (
return EFI_INVALID_PARAMETER;
}
- Length = ((EFI_ACPI_COMMON_HEADER *) AcpiTableBuffer)->Length;
- Checksum = CalculateCheckSum8 ((UINT8 *)AcpiTableBuffer, Length);
- if (Checksum != 0) {
- AcpiPlatformChecksum (
- (VOID *)AcpiTableBuffer,
- (UINTN)Length,
- OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER, Checksum)
- );
- }
-
//
// Get the instance of the ACPI table protocol
//
@@ -351,7 +339,7 @@ InstallAcpiTable (
Status = SetAcpiTable (
AcpiTableInstance,
AcpiTableBufferConst,
- FALSE,
+ TRUE,
EFI_ACPI_TABLE_VERSION_1_0B | EFI_ACPI_TABLE_VERSION_2_0 | EFI_ACPI_TABLE_VERSION_3_0,
TableKey
);