1 #ifndef __ASM_SH_BUGS_H
2 #define __ASM_SH_BUGS_H
3
4 /*
5 * This is included by init/main.c to check for architecture-dependent bugs.
6 *
7 * Needs:
8 * void check_bugs(void);
9 */
10
11 /*
12 * I don't know of any Super-H bugs yet.
13 */
14
15 #include <asm/processor.h>
16
17 static void __init check_bugs(void)
18 {
19 extern unsigned long loops_per_jiffy;
20 char *p= &system_utsname.machine[2]; /* "sh" */
21
22 cpu_data->loops_per_jiffy = loops_per_jiffy;
23
24 switch (cpu_data->type) {
25 case CPU_SH7708:
26 *p++ = '3';
27 printk("CPU: SH7707/SH7708/SH7709\n");
28 break;
29 case CPU_SH7729:
30 *p++ = '3';
31 printk("CPU: SH7709A/SH7729\n");
32 break;
33 case CPU_SH7750:
34 *p++ = '4';
35 printk("CPU: SH7750\n");
36 break;
37 default:
38 printk("CPU: ??????\n");
39 break;
40 }
41
42 #ifndef __LITTLE_ENDIAN__
43 /* 'eb' means 'Endian Big' */
44 *p++ = 'e';
45 *p++ = 'b';
46 #endif
47 *p = '\0';
48 }
49 #endif /* __ASM_SH_BUGS_H */
50
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.