diff options
Diffstat (limited to 'arch/mips64/mm/loadmmu.c')
-rw-r--r-- | arch/mips64/mm/loadmmu.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/mips64/mm/loadmmu.c b/arch/mips64/mm/loadmmu.c index 3053b9dbd..0359f92a1 100644 --- a/arch/mips64/mm/loadmmu.c +++ b/arch/mips64/mm/loadmmu.c @@ -1,4 +1,4 @@ -/* $Id: loadmmu.c,v 1.6 1999/11/23 17:12:50 ralf Exp $ +/* $Id: loadmmu.c,v 1.3 1999/12/04 03:59:00 ralf Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive @@ -8,6 +8,7 @@ * Copyright (C) 1997, 1999 Ralf Baechle (ralf@gnu.org) * Copyright (C) 1999 Silicon Graphics, Inc. */ +#include <linux/config.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/sched.h> @@ -45,7 +46,6 @@ void (*flush_tlb_range)(struct mm_struct *mm, unsigned long start, void (*flush_tlb_page)(struct vm_area_struct *vma, unsigned long page); /* Miscellaneous. */ -void (*load_pgd)(unsigned long pg_dir); void (*update_mmu_cache)(struct vm_area_struct * vma, unsigned long address, pte_t pte); @@ -60,6 +60,10 @@ extern void ld_mmu_andes(void); void __init load_mmu(void) { switch(mips_cputype) { +#if defined (CONFIG_CPU_R4300) \ + || defined (CONFIG_CPU_R4X00) \ + || defined (CONFIG_CPU_R5000) \ + || defined (CONFIG_CPU_NEVADA) case CPU_R4000PC: case CPU_R4000SC: case CPU_R4000MC: @@ -78,16 +82,21 @@ void __init load_mmu(void) printk("Loading R4000 MMU routines.\n"); ld_mmu_r4xx0(); break; +#endif +#if defined (CONFIG_CPU_R8000) case CPU_R8000: printk("Loading TFP MMU routines.\n"); ld_mmu_tfp(); break; +#endif +#if defined (CONFIG_CPU_R10000) case CPU_R10000: printk("Loading R10000 MMU routines.\n"); ld_mmu_andes(); break; +#endif default: /* XXX We need an generic routine in the MIPS port @@ -96,6 +105,7 @@ void __init load_mmu(void) * XXX routines look good for this, but only the SGI * XXX code has a full library for that at this time. */ - panic("Yeee, unsupported mmu/cache architecture."); + panic("Yeee, unsupported mmu/cache architecture or " + "wrong compiletime kernel configuration."); } } |