linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PATCH: final version of l2cr cmd line
@ 2000-09-03 13:15 Michel Lanners
  2000-09-03 13:45 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Michel Lanners @ 2000-09-03 13:15 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

[-- Attachment #1: Type: TEXT/plain, Size: 797 bytes --]

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   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

[-- Attachment #2: l2cr.diff --]
[-- Type: TEXT/plain, Size: 575 bytes --]

diff -uNr linux-2.4.paul/arch/ppc/kernel/setup.c linux/arch/ppc/kernel/setup.c
--- linux-2.4.paul/arch/ppc/kernel/setup.c	Tue Aug  8 07:46:33 2000
+++ linux/arch/ppc/kernel/setup.c	Sat Sep  2 11:26:13 2000
@@ -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 */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-09-03 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-03 13:15 PATCH: final version of l2cr cmd line Michel Lanners
2000-09-03 13:45 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).