Re: [PATCH v2 1/2] acpi: fix struct acpi_xsdt

2023-11-12 Thread Simon Glass
On Sun, 12 Nov 2023 at 00:03, Heinrich Schuchardt wrote: > > 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:

[PATCH v2 1/2] acpi: fix struct acpi_xsdt

2023-11-11 Thread Heinrich Schuchardt
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 --- v2: add unit test ---