add_ping_req memory corruption fix, neighbor state switching, honor states in generat...
[cor_2_6_31.git] / arch / sparc / mm / loadmmu.c
blob652be05acbeaa97f26d564c9e786755cd4c4ab99
1 /*
2 * loadmmu.c: This code loads up all the mm function pointers once the
3 * machine type has been determined. It also sets the static
4 * mmu values such as PAGE_NONE, etc.
6 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
7 * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
8 */
10 #include <linux/kernel.h>
11 #include <linux/mm.h>
12 #include <linux/init.h>
14 #include <asm/system.h>
15 #include <asm/page.h>
16 #include <asm/pgtable.h>
17 #include <asm/mmu_context.h>
18 #include <asm/oplib.h>
20 struct ctx_list *ctx_list_pool;
21 struct ctx_list ctx_free;
22 struct ctx_list ctx_used;
24 extern void ld_mmu_sun4c(void);
25 extern void ld_mmu_srmmu(void);
27 void __init load_mmu(void)
29 switch(sparc_cpu_model) {
30 case sun4c:
31 case sun4:
32 ld_mmu_sun4c();
33 break;
34 case sun4m:
35 case sun4d:
36 ld_mmu_srmmu();
37 break;
38 default:
39 prom_printf("load_mmu: %d unsupported\n", (int)sparc_cpu_model);
40 prom_halt();
42 btfixup();