linuxppc_2_4_devel patch adding KGDB support to ev64260

3 messages, 2 authors, 2003-06-05 · open the first message on its own page

linuxppc_2_4_devel patch adding KGDB support to ev64260

From: Mark A. Greer <hidden>
Date: 2003-06-05 21:47:46

Subject pretty much says it all.

Please apply if no one objects.

Mark
--

Re: linuxppc_2_4_devel patch adding KGDB support to ev64260

From: Tom Rini <hidden>
Date: 2003-06-05 22:40:31

On Thu, Jun 05, 2003 at 02:47:46PM -0700, Mark A. Greer wrote:
quoted hunk
===== arch/ppc/platforms/ev64260.c 1.22 vs edited =====
--- 1.22/arch/ppc/platforms/ev64260.c	Fri Feb 28 10:31:00 2003
+++ edited/arch/ppc/platforms/ev64260.c	Tue Jun  3 15:39:57 2003
[snip]
+static void __init
+ev64260_setup_arch(void)
[snip]
quoted hunk
@@ -416,14 +481,10 @@
 		ppc_md.progress("ev64260_setup_arch: Enabling L2 cache", 0);

 	/* Enable L2 and L3 caches (if 745x) */
-	val = _get_L2CR();
-	val |= L2CR_L2E;
-	_set_L2CR(val);
-
-	if (PVR_VER(mfspr(PVR)) == PVR_VER(PVR_7450)) {
-		val = _get_L3CR();
-		val |= L3CR_L3E;
-		_set_L3CR(val);
+	_set_L2CR(_get_L2CR() | L2CR_L2E);
+
+	if (cur_cpu_spec[0]->cpu_features & CPU_FTR_L3CR) {
+		_set_L3CR(_get_L3CR() | L3CR_L3E);
 	}

 	if ( ppc_md.progress )
Redundant check.  _{get,set}_L3CR check for the appropriate cpufeature
flags.
quoted hunk
@@ -808,7 +789,7 @@
 {
 	extern char cmd_line[];

-	cmd_line[0]=0;
+	cmd_line[0] = '\0';
 #ifdef CONFIG_BLK_DEV_INITRD
 	initrd_start=initrd_end=0;
 	initrd_below_start_ok=0;
Um, is that really needed?  It shouldn't be..

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: linuxppc_2_4_devel patch adding KGDB support to ev64260

From: Mark A. Greer <hidden>
Date: 2003-06-05 23:23:22

Tom Rini wrote:
On Thu, Jun 05, 2003 at 02:47:46PM -0700, Mark A. Greer wrote:


quoted
@@ -416,14 +481,10 @@
		ppc_md.progress("ev64260_setup_arch: Enabling L2 cache", 0);

	/* Enable L2 and L3 caches (if 745x) */
-	val = _get_L2CR();
-	val |= L2CR_L2E;
-	_set_L2CR(val);
-
-	if (PVR_VER(mfspr(PVR)) == PVR_VER(PVR_7450)) {
-		val = _get_L3CR();
-		val |= L3CR_L3E;
-		_set_L3CR(val);
+	_set_L2CR(_get_L2CR() | L2CR_L2E);
+
+	if (cur_cpu_spec[0]->cpu_features & CPU_FTR_L3CR) {
+		_set_L3CR(_get_L3CR() | L3CR_L3E);
	}

	if ( ppc_md.progress )
Redundant check.  _{get,set}_L3CR check for the appropriate cpufeature
flags.
Gone.
quoted
@@ -808,7 +789,7 @@
{
	extern char cmd_line[];

-	cmd_line[0]=0;
+	cmd_line[0] = '\0';
#ifdef CONFIG_BLK_DEV_INITRD
	initrd_start=initrd_end=0;
	initrd_below_start_ok=0;
Um, is that really needed?  It shouldn't be..
Nope.  Somehow, that line got injected into the code to I carried it
forward.  I won't anymore.  Its gone.

Attached is the new patch.

Mark
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help