diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-27 06:56:47 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-27 06:56:47 +0000 |
commit | 14e22779625de673569c7b950ecc2753fb915b31 (patch) | |
tree | 14a6ed759e116e9e6e9bbd7f499b74b96d6cc072 /util/mptable/mptable.c | |
parent | 0e1e8065e303030c39c3f2c27e5d32ee58a16c66 (diff) |
Since some people disapprove of white space cleanups mixed in regular commits
while others dislike them being extra commits, let's clean them up once and
for all for the existing code. If it's ugly, let it only be ugly once :-)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/mptable/mptable.c')
-rw-r--r-- | util/mptable/mptable.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/mptable/mptable.c b/util/mptable/mptable.c index b253b75248..fea99ac877 100644 --- a/util/mptable/mptable.c +++ b/util/mptable/mptable.c @@ -296,7 +296,7 @@ int grope = 0; int verbose = 0; int noisy = 0; /* preamble to the mptable. This is fixed for all coreboots */ - + char *preamble[] = { "#include <console/console.h>", "#include <arch/smp/mpspec.h>", @@ -404,7 +404,7 @@ write_code(char **code) printf("%s\n", *code++); } /* - * + * */ int main( int argc, char *argv[] ) @@ -415,7 +415,7 @@ main( int argc, char *argv[] ) int defaultConfig; /* announce ourselves */ - + if (verbose) puts( SEP_LINE2 ); printf( "/* generated by MPTable, version %d.%d.%d*/\n", VMAJOR, VMINOR, VDELTA ); @@ -427,7 +427,7 @@ main( int argc, char *argv[] ) for(argc--, argv++; argc; argc--, argv++){ if ( strcmp( argv[0], "-dmesg") == 0 ) { dmesg = 1; - } else + } else if ( strcmp( argv[0], "-help") == 0 ) { usage(); @@ -648,7 +648,7 @@ apic_probe( vm_offset_t* paddr, int* where ) /* - * + * */ static void MPFloatingPointer( vm_offset_t paddr, int where, mpfps_t* mpfps ) @@ -719,7 +719,7 @@ MPFloatingPointer( vm_offset_t paddr, int where, mpfps_t* mpfps ) /* - * + * */ static void MPConfigDefault( int featureByte ) @@ -776,7 +776,7 @@ MPConfigDefault( int featureByte ) /* - * + * */ static void MPConfigTableHeader( uint32_t pap ) @@ -966,7 +966,7 @@ MPConfigTableHeader( uint32_t pap ) /* - * + * */ static int readType( void ) @@ -984,7 +984,7 @@ readType( void ) /* - * + * */ static void seekEntry( vm_offset_t addr ) @@ -995,7 +995,7 @@ seekEntry( vm_offset_t addr ) /* - * + * */ static void readEntry( void* entry, int size ) @@ -1034,7 +1034,7 @@ processorEntry( void ) /* - * + * */ static int lookupBusType( char* name ) @@ -1103,13 +1103,13 @@ ioApicEntry( void ) apics[ entry.apicID ] = entry.apicID; // the numbering and setup of ioapics is so irrational - // that for now we will punt. + // 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 - + } @@ -1144,11 +1144,11 @@ intEntry( void ) printf( "\t %5d", (int)entry.srcBusID ); if ( busses[ (int)entry.srcBusID ] == PCI ) - printf( "\t%2d:%c", + printf( "\t%2d:%c", ((int)entry.srcBusIRQ >> 2) & 0x1f, ((int)entry.srcBusIRQ & 0x03) + 'A' ); else - printf( "\t 0x%x:0x%x(0x%x)", + printf( "\t 0x%x:0x%x(0x%x)", (int)entry.srcBusIRQ>>2, (int)entry.srcBusIRQ & 3, (int)entry.srcBusIRQ ); @@ -1163,7 +1163,7 @@ intEntry( void ) (int)entry.srcBusIRQ, (int)entry.dstApicID , (int)entry.dstApicINT ); - + } static void @@ -1186,7 +1186,7 @@ lintEntry( void ) printf( "\t %5d", (int)entry.srcBusID ); if ( busses[ (int)entry.srcBusID ] == PCI ) - printf( "\t%2d:%c", + printf( "\t%2d:%c", ((int)entry.srcBusIRQ >> 2) & 0x1f, ((int)entry.srcBusIRQ & 0x03) + 'A' ); else @@ -1201,7 +1201,7 @@ lintEntry( void ) (int)entry.srcBusID, (int)entry.srcBusIRQ, (int)entry.dstApicINT ); - + } @@ -1304,7 +1304,7 @@ doOptionList( void ) /* - * + * */ static void pnstr( uint8_t* s, int c ) |