patch-2.4.0-test6 linux/include/asm-sh/bugs.h
Next file: linux/include/asm-sh/delay.h
Previous file: linux/include/asm-s390/system.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Wed Aug 9 13:59:04 2000
- Orig file:
v2.4.0-test5/linux/include/asm-sh/bugs.h
- Orig date:
Fri Oct 22 13:21:54 1999
diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-sh/bugs.h linux/include/asm-sh/bugs.h
@@ -17,22 +17,33 @@
static void __init check_bugs(void)
{
extern unsigned long loops_per_sec;
+ char *p= &system_utsname.machine[2]; /* "sh" */
cpu_data->loops_per_sec = loops_per_sec;
switch (cpu_data->type) {
case CPU_SH7708:
- printk("CPU: SH7708/SH7709\n");
+ *p++ = '3';
+ printk("CPU: SH7707/SH7708/SH7709\n");
break;
case CPU_SH7729:
+ *p++ = '3';
printk("CPU: SH7709A/SH7729\n");
break;
case CPU_SH7750:
+ *p++ = '4';
printk("CPU: SH7750\n");
break;
default:
printk("CPU: ??????\n");
break;
}
+
+#ifndef __LITTLE_ENDIAN__
+ /* 'eb' means 'Endian Big' */
+ *p++ = 'e';
+ *p++ = 'b';
+#endif
+ *p = '\0';
}
#endif /* __ASM_SH_BUGS_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)