PLPRCR & Checkstop reset

Dan Malek dan at netx4.com
Wed Jun 28 03:50:05 EST 2000


Dan Malek wrote:

> Here is the first installment.

Let's try this again.......I will actually attach something
this time.  I am travelling and don't have access to a system
or enought documentation to attempt checkstop/reset.



	-- Dan
-------------- next part --------------
--- linux.old/arch/ppc/kernel/m8xx_setup.c	Wed Feb 16 11:43:25 2000
+++ linux/arch/ppc/kernel/m8xx_setup.c	Tue Jun 27 09:47:27 2000
@@ -228,9 +240,17 @@
 void
 m8xx_restart(char *cmd)
 {
-	extern void m8xx_gorom(void);
+	extern void m8xx_gorom(uint bp, uint startaddr);
+	uint	startaddr;
+
+	startaddr = 0xfff00100;
+
+	if (cmd != NULL) {
+		if (!strncmp(cmd, "startaddr=", 10))
+			startaddr = simple_strtoul(&cmd[10], NULL, 0);
+	}

-	m8xx_gorom();
+	m8xx_gorom((uint)__pa(res), startaddr);
 }

 void


More information about the Linuxppc-embedded mailing list