PERFORCE change 125619 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Fri Aug 24 08:47:14 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=125619

Change 125619 by gonzo at gonzo_jeeves on 2007/08/24 15:46:38

	o Properly reset device.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips32/idt/idt_machdep.c#2 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips32/idt/idt_machdep.c#2 (text+ko) ====

@@ -128,7 +128,12 @@
 void
 platform_reset(void)
 {
+	volatile unsigned int * p = (void *)0xb8008000;
+	/* Write 0x8000_0001 to the Reset register */
+	*p = 0x80000001;
 
+	__asm __volatile("li	$25, 0xbfc00000");
+	__asm __volatile("j	$25");
 }
 
 void


More information about the p4-projects mailing list