
12 Nov
2023
12 Nov
'23
4:58 p.m.
Since struct acpi_table_header is not a multiple of 64 bits, use the __packed option for struct acpi_xsdt
This ensures that the entry[] array starts on the correct boundary.
Signed-off-by: Simon Glass sjg@chromium.org ---
include/acpi/acpi_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index 1f85de091d39..59ab79ed17c2 100644 --- a/include/acpi/acpi_table.h +++ b/include/acpi/acpi_table.h @@ -80,7 +80,7 @@ struct acpi_rsdt { };
/* XSDT (Extended System Description Table) */ -struct acpi_xsdt { +struct __packed acpi_xsdt { struct acpi_table_header header; u64 entry[MAX_ACPI_TABLES]; };
--
2.42.0.869.gea05f2083d-goog