Skip to contentSkip to conversation

LASAT bootinfo machine number reversion

PATCH New Brian Murphy 1 participant 1 message Apr 7, 2004 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LASAT bootinfo machine number reversion

Hi Ralf,
Missed the subject the last time, so here it is again.
The arbitrary change of lasat machine numbers in revision 1.70 of bootinfo.h means the lasat machines don't get very far in the boot process. I use this number as an index into several arrays to dynamically set up the minor hardware differences between the two machines, it being off by one causes a horrible crash the first time one of the values is used.

Was there a good reason for the change or can you apply the following patch to allow these systems to boot...?

/Brian

Index: include/asm-mips/bootinfo.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/bootinfo.h,v retrieving revision 1.73

asm-mips/bootinfo.h +2 -2
diff -u -r1.73 bootinfo.h
@@ -200,8 +200,8 @@
  * Valid machtype for group LASAT
  */
 #define MACH_GROUP_LASAT       21
-#define  MACH_LASAT_100		1	/* Masquerade II/SP100/SP50/SP25 */
-#define  MACH_LASAT_200		2	/* Masquerade PRO/SP200 */
+#define  MACH_LASAT_100		0	/* Masquerade II/SP100/SP50/SP25 */
+#define  MACH_LASAT_200		1	/* Masquerade PRO/SP200 */
 
 /*
  * Valid machtype for group TITAN