Ugh, just realized that ./linux/arch/mips/arc/identify.c is used by more
than just SGI machines.
Here is an updated patch, that should handle things correctly.
Vince
[P.S. (shameless plug) If there is anoyone out there looking for a
college student summer intern with some sgi/linux experience, let me
know]
[-------------]
--- ./linux/include/asm-mips/bootinfo.old.h Thu Jan 13 12:29:17 2000
+++ ./linux/include/asm-mips/bootinfo.h Fri Jan 14 07:28:13 2000
@@ -91,8 +91,9 @@
* Valid machtype for group SGI
*/
#define MACH_SGI_INDY 0 /* R4?K and R5K Indy workstaions */
+#define MACH_SGI_INDIGO2 1
-#define GROUP_SGI_NAMES { "Indy" }
+#define GROUP_SGI_NAMES { "Indy", "Indigo2" }
/*
* Valid machtype for group COBALT
--- ./linux/arch/mips/arc/identify.c.old Fri Jan 14 08:01:53 2000
+++ ./linux/arch/mips/arc/identify.c Fri Jan 14 08:21:07 2000
@@ -17,6 +17,7 @@
#include <asm/sgi/sgi.h>
#include <asm/sgialib.h>
#include <asm/bootinfo.h>
+#include <asm/sgi/sgihpc.h>
struct smatch {
char *name;
@@ -59,10 +60,16 @@
*/
p = prom_getchild(PROM_NULL_COMPONENT);
printk("ARCH: %s\n", p->iname);
- mach = string_to_mach(p->iname);
+ mach = string_to_mach(p->iname);
mips_machgroup = mach->group;
- mips_machtype = mach->type;
+
+ /* sgi_guiness=1 implies an indy, sgi_guiness=0 implies an Indigo2.
+ * We'll need to fix this if more SGI arch's get added. --vmw
+ */
+ if (mips_machgroup==MACH_GROUP_SGI) mips_machtype=!sgi_guiness;
+ else mips_machtype=mach->type;
+
prom_flags = mach->flags;
}
|