]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: fix struct acpi_xsdt
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 21 Nov 2023 14:41:27 +0000 (15:41 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 23:39:06 +0000 (18:39 -0500)
commitbda020e762c4c391e4bf13fd73c093e757f92b3e
treed0be5fcb67802fa0c7fe2ff46d3cd2715f602d83
parent049ee9090399679826a6294098efc2242f5e63ad
acpi: fix struct acpi_xsdt

The size of the ACPI table header is not a multiple of 8. We have to mark
struct acpi_xsdt as packed to correctly access field Entry.

Add a unit test for the offsets of field Entry in the RSDT and XSDT tables.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/acpi/acpi_table.h
test/dm/acpi.c