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
This commit is contained in:
parent
ec6509897a
commit
5b87feb64a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244526
@ -270,8 +270,8 @@ static void pnstr( char* s, int c );
|
|||||||
/* global data */
|
/* global data */
|
||||||
static int pfd; /* physical /dev/mem fd */
|
static int pfd; /* physical /dev/mem fd */
|
||||||
|
|
||||||
static int busses[16];
|
static int busses[256];
|
||||||
static int apics[16];
|
static int apics[256];
|
||||||
|
|
||||||
static int ncpu;
|
static int ncpu;
|
||||||
static int nbus;
|
static int nbus;
|
||||||
@ -711,7 +711,7 @@ MPConfigTableHeader( u_int32_t pap )
|
|||||||
printf( "MP Config Base Table Entries:\n\n" );
|
printf( "MP Config Base Table Entries:\n\n" );
|
||||||
|
|
||||||
/* initialze tables */
|
/* initialze tables */
|
||||||
for ( x = 0; x < 16; ++x ) {
|
for ( x = 0; x < 256; ++x ) {
|
||||||
busses[ x ] = apics[ x ] = 0xff;
|
busses[ x ] = apics[ x ] = 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user