xen/arm: gic: acpi: Use the correct length for the GICC structure
authorJulien Grall <julien.grall@arm.com>
Thu, 19 Nov 2020 17:08:28 +0000 (17:08 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 20 Nov 2020 00:25:02 +0000 (16:25 -0800)
commit9a3c25b6562416dfb3708b0e61a4e4761db06e4f
tree8b41432f245a7ddaea10a438942545bcb10528c7
parent1965c171a4a791bbed1cf84c097177117bb02dac
xen/arm: gic: acpi: Use the correct length for the GICC structure

The length of the GICC structure in the MADT ACPI table differs between
version 5.1 and 6.0, although there are no other relevant differences.

Use the BAD_MADT_GICC_ENTRY macro, which was specifically designed to
overcome this issue.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/acpi/boot.c
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/arch/arm/gic.c