This source file includes following definitions.
- check_mmu
- check_bugs
1
2
3
4
5
6
7
8
9
10
11
12
13 #define CONFIG_BUGSPARC
14
15 #include <asm/openprom.h>
16
17 extern struct linux_romvec *romvec;
18 extern int tbase_needs_unmapping;
19
20 static void check_mmu(void)
21 {
22 register struct linux_romvec *lvec;
23 register int root_node;
24 unsigned int present;
25
26 lvec = romvec;
27
28 root_node = (*(romvec->pv_nodeops->no_nextnode))(0);
29 tbase_needs_unmapping=0;
30
31 present = 0;
32 (*(romvec->pv_nodeops->no_getprop))(root_node, "buserr-type",
33 (char *) &present);
34 if(present == 1)
35 {
36 tbase_needs_unmapping=1;
37 printk("MMU bug found: not allowing trapbase to be cached\n");
38 }
39
40 return;
41 }
42
43
44 static void
45 check_bugs(void)
46 {
47 check_mmu();
48 }