Received: from eggs.gnu.org ([208.118.235.92]:58202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srxhd-0001wx-T8 for qemu-devel@nongnu.org; Thu, 19 Jul 2012 16:52:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srxhc-000124-Q7 for qemu-devel@nongnu.org; Thu, 19 Jul 2012 16:52:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srxhc-00011v-I9 for qemu-devel@nongnu.org; Thu, 19 Jul 2012 16:52:04 -0400 From: Eduardo Habkost Date: Thu, 19 Jul 2012 17:52:41 -0300 Message-Id: <1342731162-14285-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1342731162-14285-1-git-send-email-ehabkost@redhat.com> References: <1342731162-14285-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, seabios@seabios.org Cc: Igor Mammedov , Gleb Natapov When resetting an I/O APIC, its ID is set to 0, so set it to 0 on the MADT table too. Signed-off-by: Eduardo Habkost --- src/acpi.c | 2 +- src/config.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/acpi.c b/src/acpi.c index 55e4607..3f55de9 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -335,7 +335,7 @@ build_madt(void) struct madt_io_apic *io_apic = (void*)apic; io_apic->type = APIC_IO; io_apic->length = sizeof(*io_apic); - io_apic->io_apic_id = CountCPUs; + io_apic->io_apic_id = BUILD_IOAPIC_ID; io_apic->address = cpu_to_le32(BUILD_IOAPIC_ADDR); io_apic->interrupt = cpu_to_le32(0); diff --git a/src/config.h b/src/config.h index 3a70867..878c691 100644 --- a/src/config.h +++ b/src/config.h @@ -52,9 +52,11 @@ #define BUILD_PCIMEM64_END 0x10000000000ULL #define BUILD_IOAPIC_ADDR 0xfec00000 +#define BUILD_IOAPIC_ID 0 #define BUILD_HPET_ADDRESS 0xfed00000 #define BUILD_APIC_ADDR 0xfee00000 + // Important real-mode segments #define SEG_IVT 0x0000 #define SEG_BDA 0x0040 -- 1.7.10.4