summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-02-21 18:13:58 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-24 17:10:02 +0000
commit532e043b66a6f05ba2d8a73b431913295ed89f11 (patch)
tree2418a928b9b0b92e93b8527f9459c84e3a1db1fb /src/acpi
parent95f8f92451097ad52ab49affbe21ea5782e6146d (diff)
treewide: Write minor version at acpi_create_fadt() function
When "fadt->FADT_MinorVersion" is not explicitly set to the right value, gcc sets it up to "0". So set it correctly for treewide. Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: Ic9a8e097f78622cd78ba432e3b1141b142485b9a Reviewed-on: https://review.coreboot.org/c/coreboot/+/62221 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com> Reviewed-by: Lance Zhao
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index e3f77e0f6a..456fd332dc 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -1507,6 +1507,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
memcpy(header->asl_compiler_id, ASLC, 4);
header->asl_compiler_revision = asl_revision;
+ fadt->FADT_MinorVersion = get_acpi_fadt_minor_version();
fadt->firmware_ctrl = (unsigned long) facs;
fadt->x_firmware_ctl_l = (unsigned long)facs;
fadt->x_firmware_ctl_h = 0;