mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 18:34:42 +00:00
qemu-sbsa: simplify updating ACPI table header checksum
Use acpi_update_checksum() to update table header. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Matthias Brugger <mbrugger@suse.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
e0055ac9bb
commit
5eca1696d2
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ static int sbsa_write_gtdt(struct acpi_ctx *ctx, const struct acpi_writer *entry
|
|||
gtdt->cnt_read_base = 0xffffffffffffffff;
|
||||
|
||||
// FIXME: VirtualPL2Timer
|
||||
header->checksum = table_compute_checksum(header, header->length);
|
||||
acpi_update_checksum(header);
|
||||
|
||||
acpi_add_table(ctx, gtdt);
|
||||
|
||||
|
@ -181,7 +181,7 @@ static int acpi_write_pptt(struct acpi_ctx *ctx, const struct acpi_writer *entry
|
|||
}
|
||||
|
||||
header->length = ctx->current - ctx->tab_start;
|
||||
header->checksum = table_compute_checksum(header, header->length);
|
||||
acpi_update_checksum(header);
|
||||
|
||||
acpi_inc(ctx, header->length);
|
||||
acpi_add_table(ctx, header);
|
||||
|
|
Loading…
Add table
Reference in a new issue