Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2007 15:47:13 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 125619 for review
Message-ID:  <200708241547.l7OFlDCr099262@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125619

Change 125619 by gonzo@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708241547.l7OFlDCr099262>