From 71824dd8dbcf54019de02a8ec112266222afb98e Mon Sep 17 00:00:00 2001 From: jyao1 Date: Thu, 15 Dec 2011 05:34:57 +0000 Subject: =?UTF-8?q?InstallAcpiTable()=20-=20Do=20not=20update=20the=20chec?= =?UTF-8?q?ksum=20in=20the=20passed=20in=20buffer=20=E2=80=93=20the=20buff?= =?UTF-8?q?er=20is=20an=20IN=20buffer=20and=20should=20be=20treated=20as?= =?UTF-8?q?=20such.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../Acpi/AcpiSupportDxe/AcpiSupportAcpiSupportProtocol.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'IntelFrameworkModulePkg/Universal') diff --git a/IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportAcpiSupportProtocol.c b/IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportAcpiSupportProtocol.c index f919911ffd..a54cffb169 100644 --- a/IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportAcpiSupportProtocol.c +++ b/IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportAcpiSupportProtocol.c @@ -390,8 +390,6 @@ InstallAcpiTable ( EFI_ACPI_SUPPORT_PROTOCOL *AcpiSupport; EFI_STATUS Status; VOID *AcpiTableBufferConst; - UINT32 Length; - UINT8 Checksum; // // Check for invalid input parameters @@ -401,16 +399,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 support protocol // @@ -425,7 +413,7 @@ InstallAcpiTable ( Status = AcpiSupport->SetAcpiTable ( AcpiSupport, AcpiTableBufferConst, - FALSE, + TRUE, EFI_ACPI_TABLE_VERSION_1_0B | EFI_ACPI_TABLE_VERSION_2_0 | EFI_ACPI_TABLE_VERSION_3_0, TableKey ); -- cgit v1.2.3