X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=kitten%2Farch%2Fx86_64%2Fkernel%2Fioapic.c;h=bf38e202c6cec46daacb3c8ad6a69af831bab4b3;hb=be0a259375ebcfe92ab248f37ed2fee7ccb04062;hp=6c5fc9846d8e7b8c4d7ee7fb489ca680f6d45127;hpb=f8f34325f488003363eba70f03356618735130e4;p=palacios.git 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