lkml.org 
[lkml]   [2005]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] mpspec.h: Fix MAX_MP_BUSSES for compliance with MP specification
MP specification uses an 8-bit field for bus ID.  Therefore, the highest bus ID is 0xff.
Since the tables allocated and used in mpparse.c are indexed by bus ID, we need to make
sure we allocate 256 entries for these tables.

Note that bus IDs can be noncontiguous, according to the MP specification. The only
requirement is that they be listed in increasing order.


Signed-off-by: Andrew Chew <achew@nvidia.com>

---

diff -ru linux-2.4.29/include/asm-i386/mpspec.h linux/include/asm-i386/mpspec.h
--- linux-2.4.29/include/asm-i386/mpspec.h 2004-11-17 03:54:22.000000000 -0800
+++ linux/include/asm-i386/mpspec.h 2005-03-18 15:02:20.000000000 -0800
@@ -191,7 +191,7 @@
#define MAX_IRQ_SOURCES 256
#endif /* CONFIG_MULTIQUAD */

-#define MAX_MP_BUSSES 32
+#define MAX_MP_BUSSES 256
enum mp_bustype {
MP_BUS_ISA = 1,
MP_BUS_EISA,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.024 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site