mirror of https://github.com/acidanthera/audk.git
EmbeddedPkg/AcpiLib: add GICC table init macro for ACPI 6.0
ACPI 6.0 added a processor efficiency field and 3 reserved bytes at the end of the GICC structure so add a new macro to initialise the new field. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
parent
a91f1a0e88
commit
6ff71a134f
|
@ -61,6 +61,15 @@
|
||||||
GsivId, GicRBase, Mpidr \
|
GsivId, GicRBase, Mpidr \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define EFI_ACPI_6_0_GICC_STRUCTURE_INIT(GicId, AcpiCpuUid, Mpidr, Flags, PmuIrq, \
|
||||||
|
GicBase, GicVBase, GicHBase, GsivId, GicRBase, Efficiency) \
|
||||||
|
{ \
|
||||||
|
EFI_ACPI_6_0_GIC, sizeof (EFI_ACPI_6_0_GIC_STRUCTURE), EFI_ACPI_RESERVED_WORD, \
|
||||||
|
GicId, AcpiCpuUid, Flags, 0, PmuIrq, 0, GicBase, GicVBase, GicHBase, \
|
||||||
|
GsivId, GicRBase, Mpidr, Efficiency, \
|
||||||
|
{EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE, EFI_ACPI_RESERVED_BYTE} \
|
||||||
|
}
|
||||||
|
|
||||||
#define EFI_ACPI_6_0_GIC_MSI_FRAME_INIT(GicMsiFrameId, PhysicalBaseAddress, Flags, SPICount, SPIBase) \
|
#define EFI_ACPI_6_0_GIC_MSI_FRAME_INIT(GicMsiFrameId, PhysicalBaseAddress, Flags, SPICount, SPIBase) \
|
||||||
{ \
|
{ \
|
||||||
EFI_ACPI_6_0_GIC_MSI_FRAME, sizeof (EFI_ACPI_6_0_GIC_MSI_FRAME_STRUCTURE), EFI_ACPI_RESERVED_WORD, \
|
EFI_ACPI_6_0_GIC_MSI_FRAME, sizeof (EFI_ACPI_6_0_GIC_MSI_FRAME_STRUCTURE), EFI_ACPI_RESERVED_WORD, \
|
||||||
|
|
Loading…
Reference in New Issue