mptable: initialize apic/bus arrays with ARRAY_SIZE

and increase the busses size to 32, as 16 isn't enough one some
systems (i5000 for example)

Change-Id: Ie09f451dd82ac25b0de85fd47807136e01da737b
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/1114
Tested-by: build bot (Jenkins)
This commit is contained in:
Sven Schnelle 2012-06-20 10:23:31 +02:00
parent 2fcc166fb8
commit 2f8c4f829e
1 changed files with 5 additions and 4 deletions

View File

@ -276,7 +276,7 @@ static void pnstr(uint8_t * s, int c);
/* global data */ /* global data */
int pfd; /* physical /dev/mem fd */ int pfd; /* physical /dev/mem fd */
int busses[16]; int busses[32];
int apics[16]; int apics[16];
int ncpu; int ncpu;
@ -787,9 +787,10 @@ static void MPConfigTableHeader(uint32_t pap)
} }
/* initialze tables */ /* initialze tables */
for (x = 0; x < 16; ++x) { for(x = 0; x < ARRAY_SIZE(busses); x++)
busses[x] = apics[x] = 0xff; busses[x] = UNKNOWN_BUSTYPE;
} for(x = 0; x < ARRAY_SIZE(apics); x++)
apics[x] = 0xff;
ncpu = 0; ncpu = 0;
nbus = 0; nbus = 0;