patch-2.4.25 linux-2.4.25/arch/mips/mm/c-r3k.c

Next file: linux-2.4.25/arch/mips/mm/c-r4k.c
Previous file: linux-2.4.25/arch/mips/mm/Makefile
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/mips/mm/c-r3k.c linux-2.4.25/arch/mips/mm/c-r3k.c
@@ -23,9 +23,6 @@
 #include <asm/bootinfo.h>
 #include <asm/cpu.h>
 
-void r3k_clear_page(void * page);
-void r3k_copy_page(void * to, void * from);
-
 static unsigned long icache_size, dcache_size;		/* Size in bytes */
 static unsigned long icache_lsize, dcache_lsize;	/* Size in bytes */
 
@@ -320,10 +317,8 @@
 
 void __init ld_mmu_r23000(void)
 {
-	unsigned long config;
-
-	_clear_page = r3k_clear_page;
-	_copy_page = r3k_copy_page;
+	extern void build_clear_page(void);
+	extern void build_copy_page(void);
 
 	r3k_probe_cache();
 
@@ -344,4 +339,7 @@
 		icache_size >> 10, icache_lsize);
 	printk("Primary data cache %ldkB, linesize %ld bytes.\n",
 		dcache_size >> 10, dcache_lsize);
+
+	build_clear_page();
+	build_copy_page();
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)