\r
/**\r
Installs an ACPI table into the RSDT/XSDT.\r
+ Note that the ACPI table should be checksumed before installing it.\r
+ Otherwise it will assert.\r
\r
@param This Protocol instance pointer.\r
@param AcpiTableBuffer A pointer to a buffer containing the ACPI table to be installed.\r
EFI_ACPI_TABLE_INSTANCE *AcpiTableInstance;\r
EFI_STATUS Status;\r
VOID *AcpiTableBufferConst;\r
+ UINT32 Length;\r
+ UINT8 Checksum;\r
\r
//\r
// Check for invalid input parameters\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
+ Length = ((EFI_ACPI_COMMON_HEADER *) AcpiTableBuffer)->Length;\r
+ Checksum = CalculateCheckSum8 ((UINT8 *)AcpiTableBuffer, Length);\r
+ ASSERT (Checksum == 0);\r
+\r
//\r
// Get the instance of the ACPI table protocol\r
//\r