import of ftp.dlink.com/GPL/DSMG-600_reB/ppclinux.tar.gz
[linux-2.4.21-pre4.git] / arch / ppc / mm / 440_mmu.c
1 /*
2  * BK Id: %F% %I% %G% %U% %#%
3  */
4 /*
5  * This file contains the routines for initializing the MMU
6  * on the 4xx series of chips.
7  *  -- paulus
8  * 
9  *  Derived from arch/ppc/mm/init.c:
10  *    Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
11  *
12  *  Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)
13  *  and Cort Dougan (PReP) (cort@cs.nmt.edu)
14  *    Copyright (C) 1996 Paul Mackerras
15  *  Amiga/APUS changes by Jesper Skov (jskov@cygnus.co.uk).
16  *
17  *  Derived from "arch/i386/mm/init.c"
18  *    Copyright (C) 1991, 1992, 1993, 1994  Linus Torvalds
19  *
20  *  This program is free software; you can redistribute it and/or
21  *  modify it under the terms of the GNU General Public License
22  *  as published by the Free Software Foundation; either version
23  *  2 of the License, or (at your option) any later version.
24  *
25  */
26
27 #include <linux/config.h>
28 #include <linux/signal.h>
29 #include <linux/sched.h>
30 #include <linux/kernel.h>
31 #include <linux/errno.h>
32 #include <linux/string.h>
33 #include <linux/types.h>
34 #include <linux/ptrace.h>
35 #include <linux/mman.h>
36 #include <linux/mm.h>
37 #include <linux/swap.h>
38 #include <linux/stddef.h>
39 #include <linux/vmalloc.h>
40 #include <linux/init.h>
41 #include <linux/delay.h>
42 #include <linux/bootmem.h>
43 #include <linux/highmem.h>
44
45 #include <asm/pgalloc.h>
46 #include <asm/prom.h>
47 #include <asm/io.h>
48 #include <asm/mmu_context.h>
49 #include <asm/pgtable.h>
50 #include <asm/mmu.h>
51 #include <asm/uaccess.h>
52 #include <asm/smp.h>
53 #include <asm/bootx.h>
54 #include <asm/machdep.h>
55 #include <asm/setup.h>
56
57 /* Used by the 4xx TLB replacement exception handler.
58  * Just needed it declared someplace (and initialized to zero).
59  */
60 unsigned int tlb_4xx_index;
61
62 /*
63  * MMU_init_hw does the chip-specific initialization of the MMU hardware.
64  */
65 void __init MMU_init_hw(void)
66 {
67         flush_instruction_cache();
68 }