]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: acpi: Correct the version of the MADT
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 03:22:37 +0000 (21:22 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
Currently U-Boot implements version 2 but reports version 4. Correct it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
arch/x86/lib/acpi_table.c

index d2bc3386eb05b2b062eed1b13d467bd9a45b092e..3a93fedfc3e9bb3257e030201d46afc76c6809ee 100644 (file)
@@ -155,7 +155,7 @@ static void acpi_create_madt(struct acpi_madt *madt)
        /* Fill out header fields */
        acpi_fill_header(header, "APIC");
        header->length = sizeof(struct acpi_madt);
-       header->revision = 4;
+       header->revision = ACPI_MADT_REV_ACPI_3_0;
 
        madt->lapic_addr = LAPIC_DEFAULT_BASE;
        madt->flags = ACPI_MADT_PCAT_COMPAT;