From: Trammell Hudson Date: Wed, 22 Oct 2008 15:35:41 +0000 (-0500) Subject: Fake IOAPIC address if there is no mptable found X-Git-Tag: 1.0^2~15 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=be0a259375ebcfe92ab248f37ed2fee7ccb04062 Fake IOAPIC address if there is no mptable found --- diff --git a/kitten/arch/x86_64/kernel/ioapic.c b/kitten/arch/x86_64/kernel/ioapic.c index 6c5fc98..bf38e20 100644 --- a/kitten/arch/x86_64/kernel/ioapic.c +++ b/kitten/arch/x86_64/kernel/ioapic.c @@ -26,13 +26,13 @@ unsigned int ioapic_num; * Array containing the IDs of the IO APICs in the system. * The array is indexed by ioapic_index. */ -unsigned int ioapic_id[MAX_IO_APICS]; +unsigned int ioapic_id[MAX_IO_APICS] = { 1 }; /** * Addresses of the IO APICs in the system. * The array is indexed by ioapic_index. */ -unsigned long ioapic_phys_addr[MAX_IO_APICS]; +uintptr_t ioapic_phys_addr[MAX_IO_APICS] = { 0xFEC00000 }; /** * Resource entries for the IO APIC memory mapping. @@ -250,7 +250,10 @@ ioapic_map(void) char *name; if (ioapic_num == 0) - return; + { + printk( "%s: Faking IO APIC\n", __func__ ); + ioapic_num = 1; + } /* * Allocate enough memory for one resource structure per detected IO