1 /* $Id: bugs.h,v 1.4 1999/08/18 23:37:49 ralf Exp $
2 *
3 * Copyright (C) 1995 Waldorf Electronics
4 * Copyright (C) 1997, 1999 Ralf Baechle
5 */
6 #include <asm/bootinfo.h>
7
8 /*
9 * This is included by init/main.c to check for architecture-dependent bugs.
10 *
11 * Needs:
12 * void check_bugs(void);
13 */
14
15
16 static inline void check_wait(void)
17 {
18 printk("Checking for 'wait' instruction... ");
19 switch(mips_cputype) {
20 case CPU_R3081:
21 case CPU_R3081E:
22 cpu_wait = r3081_wait;
23 printk(" available.\n");
24 break;
25 case CPU_R4200:
26 case CPU_R4300:
27 case CPU_R4600:
28 case CPU_R4640:
29 case CPU_R4650:
30 case CPU_R4700:
31 case CPU_R5000:
32 case CPU_NEVADA:
33 cpu_wait = r4k_wait;
34 printk(" available.\n");
35 break;
36 default:
37 printk(" unavailable.\n");
38 break;
39 }
40 }
41
42 static void __init
43 check_bugs(void)
44 {
45 check_wait();
46 }
47
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.