From 498f7d8ddd4f60c8c8226bb6e672be04ab4c18e0 Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 13 Aug 2012 15:42:07 +0000 Subject: OvmfPkg: generate full MADT dynamically, synchronize contents with qemu Represent the set of possible PCI link target IRQs with Pcd8259LegacyModeEdgeLevel. This ensures that the 8259 Interrupt Controller code in PcAtChipsetPkg will treat them as level-triggered too. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13628 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/AcpiTables/Madt.aslc | 27 +++++++-------------------- OvmfPkg/AcpiTables/Platform.h | 4 ++-- 2 files changed, 9 insertions(+), 22 deletions(-) (limited to 'OvmfPkg/AcpiTables') diff --git a/OvmfPkg/AcpiTables/Madt.aslc b/OvmfPkg/AcpiTables/Madt.aslc index f5b71a6e0c..62bf2c7fd2 100644 --- a/OvmfPkg/AcpiTables/Madt.aslc +++ b/OvmfPkg/AcpiTables/Madt.aslc @@ -16,11 +16,7 @@ **/ #include - -// -// MADT Definitions -// -#define EFI_ACPI_OEM_MADT_REVISION 0x00000000 // TBD +#include // // Local APIC address @@ -74,21 +70,12 @@ EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE Madt = { EFI_ACPI_1_0_APIC_SIGNATURE, sizeof (EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE), EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION, - - // - // Checksum will be updated at runtime - // - 0x00, - - // - // It is expected that these values will be programmed at runtime - // - ' ', ' ', ' ', ' ', ' ', ' ', - - 0, - EFI_ACPI_OEM_MADT_REVISION, - 0, - 0, + 0x00, // Checksum will be updated at runtime + EFI_ACPI_OEM_ID, + EFI_ACPI_OEM_TABLE_ID, + EFI_ACPI_OEM_REVISION, + EFI_ACPI_CREATOR_ID, + EFI_ACPI_CREATOR_REVISION, // // MADT specific fields diff --git a/OvmfPkg/AcpiTables/Platform.h b/OvmfPkg/AcpiTables/Platform.h index 4b03897614..e8fae3c839 100644 --- a/OvmfPkg/AcpiTables/Platform.h +++ b/OvmfPkg/AcpiTables/Platform.h @@ -23,9 +23,9 @@ // #define EFI_ACPI_OEM_ID 'O','V','M','F',' ',' ' // OEMID 6 bytes long #define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64('O','V','M','F','E','D','K','2') // OEM table id 8 bytes long -#define EFI_ACPI_OEM_REVISION 0x02000820 +#define EFI_ACPI_OEM_REVISION 0x20120804 #define EFI_ACPI_CREATOR_ID SIGNATURE_32('O','V','M','F') -#define EFI_ACPI_CREATOR_REVISION 0x00000097 +#define EFI_ACPI_CREATOR_REVISION 0x00000098 #define INT_MODEL 0x01 #define SCI_INT_VECTOR 0x0009 -- cgit v1.2.3