]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arch: x86: lib: acpi_table: Fix MCFG entries
authorMoritz Fischer <moritzf@google.com>
Sat, 5 Feb 2022 20:17:44 +0000 (12:17 -0800)
committerSimon Glass <sjg@chromium.org>
Wed, 9 Feb 2022 19:30:13 +0000 (12:30 -0700)
Commit d953137526cc ("x86: Move SSDT table to a writer function")
introduced a bug where the actual MCFG entries are no longer generated.

Cc: Simon Glass <sjg@chromium.org>
Fixes: d953137526cc ("x86: Move SSDT table to a writer function")
Signed-off-by: Moritz Fischer <moritzf@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/acpi_table.c

index c0534343f1f8ec2d8dd7a6a75aaedeb8bed8ac6c..753bf396199efea9ea4dc9e6bf2ab4efd6f3b7e7 100644 (file)
@@ -499,6 +499,8 @@ int acpi_write_mcfg(struct acpi_ctx *ctx, const struct acpi_writer *entry)
        header->length = sizeof(struct acpi_mcfg);
        header->revision = 1;
 
+       current = acpi_fill_mcfg(current);
+
        /* (Re)calculate length and checksum */
        header->length = current - (u32)mcfg;
        header->checksum = table_compute_checksum(mcfg, header->length);