Skip to contentSkip to conversation

mpspec.h: Fix MAX_MP_BUSSES for compliance with MP specification

PATCH New achew 1 participant 1 message Mar 18, 2005

lore
Share & tools
lore

achew

author
#0 lore raw

PATCH 1/1 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.

---

include/asm-i386/mpspec.h +0 -0
diff -ru linux-2.4.29/include/asm-i386/mpspec.h linux/include/asm-i386/mpspec.h
@@ -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,