From: Paul M. <le...@us...> - 2002-07-12 20:14:59
|
Update of /cvsroot/linux-mips/linux/arch/mips/mm In directory usw-pr-cvs1:/tmp/cvs-serv32248/arch/mips/mm Modified Files: c-r4k.c fault.c init.c Log Message: Merge yoichi-san's vr41xx patch. Still some cleanups needed.. Index: c-r4k.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/mm/c-r4k.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- c-r4k.c 28 May 2002 21:03:31 -0000 1.9 +++ c-r4k.c 12 Jul 2002 20:14:26 -0000 1.10 @@ -1203,6 +1203,12 @@ { switch (mips_cpu.cputype) { case CPU_VR41XX: + case CPU_VR4111: + case CPU_VR4121: + case CPU_VR4122: + case CPU_VR4131: + case CPU_VR4181: + case CPU_VR4181A: icache_size = 1 << (10 + ((config >> 9) & 7)); break; case CPU_RC32300: @@ -1222,6 +1228,12 @@ { switch (mips_cpu.cputype) { case CPU_VR41XX: + case CPU_VR4111: + case CPU_VR4121: + case CPU_VR4122: + case CPU_VR4131: + case CPU_VR4181: + case CPU_VR4181A: dcache_size = 1 << (10 + ((config >> 6) & 7)); break; case CPU_RC32300: Index: fault.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/mm/fault.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- fault.c 28 Jan 2002 18:30:33 -0000 1.9 +++ fault.c 12 Jul 2002 20:14:26 -0000 1.10 @@ -18,6 +18,7 @@ #include <linux/smp.h> #include <linux/smp_lock.h> #include <linux/version.h> +#include <linux/vt_kern.h> #include <asm/hardirq.h> #include <asm/pgalloc.h> Index: init.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/mm/init.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- init.c 18 Mar 2002 22:48:17 -0000 1.6 +++ init.c 12 Jul 2002 20:14:26 -0000 1.7 @@ -161,6 +161,7 @@ extern char _ftext, _etext, _fdata, _edata; extern char __init_begin, __init_end; +#ifdef CONFIG_HIGHMEM static void __init fixrange_init (unsigned long start, unsigned long end, pgd_t *pgd_base) { @@ -190,12 +191,17 @@ } } +#endif /* CONFIG_HIGHMEM */ + void __init pagetable_init(void) { + pgd_t *pgd_base; +#ifdef CONFIG_HIGHMEM unsigned long vaddr; - pgd_t *pgd, *pgd_base; + pgd_t *pgd; pmd_t *pmd; pte_t *pte; +#endif /* Initialize the entire pgd. */ pgd_init((unsigned long)swapper_pg_dir); |