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 #include <asm/page.h>
17
18 extern pgd_t swapper_pg_dir[16384];
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
30 present = 0;
31 (*(romvec->pv_nodeops->no_getprop))(root_node, "buserr-type",
32 (char *) &present);
33 if(present == 1)
34 {
35 printk("MMU bug found: uncaching trap table\n");
36 for(present = (unsigned long) &trapbase; present < (unsigned long)
37 &swapper_pg_dir; present+=PAGE_SIZE)
38 put_pte(present, (get_pte(present) | PTE_NC));
39 }
40
41 return;
42 }
43
44
45 static void
46 check_bugs(void)
47 {
48 check_mmu();
49 }