diff options
author | Moritz Fischer <moritzf@google.com> | 2022-02-05 23:17:44 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-02-09 22:30:13 +0300 |
commit | ab2ffe735979b5e6ef417adbd6019fa603de1715 (patch) | |
tree | 0986f3c34a7dc108945c710abd9eb8831e8bac22 /arch/x86 | |
parent | 3ed8c4c88379557cce495b3b703c3b393db2d648 (diff) | |
download | u-boot-ab2ffe735979b5e6ef417adbd6019fa603de1715.tar.xz |
arch: x86: lib: acpi_table: Fix MCFG entries
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/lib/acpi_table.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index c0534343f1..753bf39619 100644 --- a/arch/x86/lib/acpi_table.c +++ b/arch/x86/lib/acpi_table.c @@ -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); |