git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0055ac
)
qemu-sbsa: simplify updating ACPI table header checksum
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Fri, 21 Mar 2025 23:21:19 +0000
(
00:21
+0100)
committer
Tom Rini
<trini@konsulko.com>
Tue, 8 Apr 2025 21:22:56 +0000
(15:22 -0600)
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>
board/emulation/qemu-sbsa/acpi.c
patch
|
blob
|
history
diff --git
a/board/emulation/qemu-sbsa/acpi.c
b/board/emulation/qemu-sbsa/acpi.c
index
ba85e08
..
7e4c55c
100644
(file)
--- a/
board/emulation/qemu-sbsa/acpi.c
+++ b/
board/emulation/qemu-sbsa/acpi.c
@@
-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);