summaryrefslogtreecommitdiff
path: root/lib/acpi/mcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/acpi/mcfg.c')
-rw-r--r--lib/acpi/mcfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acpi/mcfg.c b/lib/acpi/mcfg.c
index 8b8a5bfafae..e21fe7ce123 100644
--- a/lib/acpi/mcfg.c
+++ b/lib/acpi/mcfg.c
@@ -57,7 +57,7 @@ int acpi_write_mcfg(struct acpi_ctx *ctx, const struct acpi_writer *entry)
/* (Re)calculate length and checksum */
header->length = (ulong)ctx->current - (ulong)mcfg;
- header->checksum = table_compute_checksum(mcfg, header->length);
+ acpi_update_checksum(header);
acpi_add_table(ctx, mcfg);