Message ID | a896c9101174dc3b1928c5f6ea63b5f411b1dcf5.1269936879.git.eduard.munteanu@linux360.ro (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/acpi.c b/hw/acpi.c index 3794f70..f067f85 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -832,9 +832,11 @@ size_t acpi_tables_len, acpi_tables_prev_len; static int acpi_checksum(const uint8_t *data, int len) { int sum, i; + sum = 0; for(i = 0; i < len; i++) sum += data[i]; + return (-sum) & 0xff; }