Added generic function for calculating ACPI table checksum