From 9b860165bac4153517f46d655e5f67a25326214b Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Wed, 20 Jun 2012 08:57:11 +0200 Subject: mptable: print ioapic entries Print IOAPIC entry based on actual data, instead of giving the user the feeling that the generated ioapic entry has any relation to reality. If the IOAPIC entry in the MPTABLE is incorrect, the user will notice it anyways. But adding a static entry (which might be also incorrect) is even worse. Change-Id: I6d0012324a9e6c7d22436ada36cbd3a4f7166f5c Signed-off-by: Sven Schnelle Reviewed-on: http://review.coreboot.org/1108 Tested-by: build bot (Jenkins) --- util/mptable/mptable.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'util') diff --git a/util/mptable/mptable.c b/util/mptable/mptable.c index 92ba544723..9488e36573 100644 --- a/util/mptable/mptable.c +++ b/util/mptable/mptable.c @@ -337,11 +337,6 @@ char *postamble[] = { 0 }; -char *ioapic_code[] = { -" smp_write_ioapic(mc, 2, 0x20, IO_APIC_ADDR);", -" /* TODO: If you have multiple IOAPICs, add them here. */", -0 -}; static void usage( void ) { @@ -831,8 +826,6 @@ MPConfigTableHeader( uint32_t pap ) totalSize -= basetableEntryTypes[ 2 ].length; } - write_code(ioapic_code); - /* process all the I/O Ints */ printf( "/*I/O Ints:\tType\tPolarity Trigger\tBus ID\t IRQ\tAPIC ID\tPIN#\n*/" ); for ( t = totalSize, c = count; c; c-- ) { @@ -1054,14 +1047,9 @@ ioApicEntry( void ) apics[ entry.apicID ] = entry.apicID; - // the numbering and setup of ioapics is so irrational - // that for now we will punt. -#if 0 if (entry.apicFlags & IOAPICENTRY_FLAG_EN) printf("\tsmp_write_ioapic(mc, 0x%x, 0x%x, 0x%x);\n", entry.apicID, entry.apicVersion, entry.apicAddress); -#endif - } -- cgit v1.2.3