summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mptable
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-12-21 01:31:56 +0000
committerneel <neel@FreeBSD.org>2012-12-21 01:31:56 +0000
commit8bbd053d88cf07f6df3f7fa40ac1eb22f7ec602b (patch)
tree3d92e98fbf849b0375a21f7eddf5cc609a83c4aa /usr.sbin/mptable
parent0bf1055199ebdd0aa996e65753c95b24208fcada (diff)
downloadFreeBSD-src-8bbd053d88cf07f6df3f7fa40ac1eb22f7ec602b.zip
FreeBSD-src-8bbd053d88cf07f6df3f7fa40ac1eb22f7ec602b.tar.gz
The MPtable specification allows for an 8-bit "BUS ID" and "I/O APIC ID".
Since the 'busses[]' and 'apics[]' arrays are indexed by these 8-bit IDs make sure that they have enough space to accomodate up to 256 entries. Submitted by: Ravi Shamanna Obtained from: NetApp
Diffstat (limited to 'usr.sbin/mptable')
-rw-r--r--usr.sbin/mptable/mptable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c
index 3c38ccf..dee8449 100644
--- a/usr.sbin/mptable/mptable.c
+++ b/usr.sbin/mptable/mptable.c
@@ -270,8 +270,8 @@ static void pnstr( char* s, int c );
/* global data */
static int pfd; /* physical /dev/mem fd */
-static int busses[16];
-static int apics[16];
+static int busses[256];
+static int apics[256];
static int ncpu;
static int nbus;
@@ -711,7 +711,7 @@ MPConfigTableHeader( u_int32_t pap )
printf( "MP Config Base Table Entries:\n\n" );
/* initialze tables */
- for ( x = 0; x < 16; ++x ) {
+ for ( x = 0; x < 256; ++x ) {
busses[ x ] = apics[ x ] = 0xff;
}
OpenPOWER on IntegriCloud