PATCH: final version of l2cr cmd line
Hi Paul,
Since BenH fixed the _set_L2CR() function, I have been able to shorten the l2cr command line code. Attached is the patch vs. your current 2.4 rsync tree. I've not been able for a long time to boot a 2.4 kernel, but it never crashed in this part ;-)
Anyway, all the patch does is to actually enable the processing of l2cr= command lines.
Thanks for including this if you have no objection.
Cheers
Michel
PS Patch also posted to sourceforge.
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art. 23, Rue Paul Henkes | Ask Questions. Make Mistakes. L-1710 Luxembourg | email [email protected] | http://www.cpu.lu/~mlan | Learn Always. "
arch/ppc/kernel/setup.c +4 -2
@@ -661,11 +661,13 @@ {unsigned long val =simple_strtoul (str,NULL ,0 );printk (KERN_INFO "l2cr set to %lx\n" , val); -_set_L2CR (0 ); -_set_L2CR (val); +_set_L2CR (0 );/* force invalidate by disable cache */ +_set_L2CR (val);/* and enable it */ } } +__setup ("l2cr=" , ppc_setup_l2cr); +void __init ppc_init (void ) {/* clear the progress line */
Quoted 6 lines
Since BenH fixed the
_set_L2CR()function, I have been able to shorten the l2cr command line code. Attached is the patch vs. your current 2.4 rsync tree. I've not been able for a long time to boot a 2.4 kernel, but it never crashed in this part ;-)
PS: Thanks again to PowerLogix (and their PPC guru, Terry Greeniaus) who provided the _set_L2CR() code, which, as you can see, can be quite tricky.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/