mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
arch: x86: lib: acpi_table: Fix MCFG entries
Commitd953137526
("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:d953137526
("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>
This commit is contained in:
parent
3ed8c4c883
commit
ab2ffe7359
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue