From: Jan-Benedict G. <jb...@us...> - 2005-04-26 22:38:02
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25835 Modified Files: cpu_ka43.c Log Message: - Enabling KA43's cache is as easy as, aem, enabling it. - Performance increases dramatically, you can even feel it while it's scrolling it's boot-up text: | Speed/1BogoMIPS | LoopsPerJiffie ----------------+-----------------------+---------------- Cache off | 0.96 | 4800 Cache on | 8.80 | 44032 | Speed factor | Speed gain ----------------+---------------+------------ BogoMIPS | 9.167 | 816.7% LoopsPerJiffie | 9.173 | 817.3% - Impressive artwork, eh? 8-) Index: cpu_ka43.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel/cpu_ka43.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- cpu_ka43.c 25 Apr 2005 22:25:05 -0000 1.24 +++ cpu_ka43.c 26 Apr 2005 22:37:50 -0000 1.25 @@ -2,7 +2,7 @@ * Copyright (C) 2000 Kenn Humborg * * This file contains generic machine vector handlers for the - * KA42 and KA43 CPUs in the RIGEL-based VAXstation 3100 + * KA43 CPU in the RIGEL-based VAXstation 3100 * * 2000/04/01 Mattias Nordlund * Fixed the cache initializing, added the functions @@ -93,7 +93,7 @@ static void ka43_cache_enable(volatile unsigned int *creg_addr) { - volatile char *membase = (void*)0x80000000; /* Physical 0x00000000 */ + volatile char *membase = (void *) 0x80000000; /* Physical 0x00000000 */ int i, val; /* Enable primary cache */ @@ -114,11 +114,8 @@ * it and enable again. */ ka43_cache_disable(ka43_creg_addr); -#warning KA43 does not enable caches again! -#if 0 ka43_cache_clear(ka43_ctag_addr); ka43_cache_enable(ka43_creg_addr); -#endif } /* |