[PATCH 1/4] acpi: Use __packed with struct acpi_xsdt

Simon Glass sjg at chromium.org
Sun Nov 12 16:58:02 CET 2023


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 at 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



More information about the U-Boot mailing list