summaryrefslogtreecommitdiff
path: root/util/mptable/mptable.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/mptable/mptable.c')
-rw-r--r--util/mptable/mptable.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/mptable/mptable.c b/util/mptable/mptable.c
index e2818610b6..e2845765e6 100644
--- a/util/mptable/mptable.c
+++ b/util/mptable/mptable.c
@@ -276,7 +276,7 @@ static void pnstr(uint8_t * s, int c);
/* global data */
int pfd; /* physical /dev/mem fd */
-int busses[16];
+int busses[32];
int apics[16];
int ncpu;
@@ -787,9 +787,10 @@ static void MPConfigTableHeader(uint32_t pap)
}
/* initialze tables */
- for (x = 0; x < 16; ++x) {
- busses[x] = apics[x] = 0xff;
- }
+ for(x = 0; x < ARRAY_SIZE(busses); x++)
+ busses[x] = UNKNOWN_BUSTYPE;
+ for(x = 0; x < ARRAY_SIZE(apics); x++)
+ apics[x] = 0xff;
ncpu = 0;
nbus = 0;