svn commit: r202785 - head/sys/mips/cavium

Warner Losh imp at FreeBSD.org
Fri Jan 22 09:19:57 UTC 2010


Author: imp
Date: Fri Jan 22 09:19:57 2010
New Revision: 202785
URL: http://svn.freebsd.org/changeset/base/202785

Log:
  Jump to the mips reset vector.  OR in the 0x80000000 for kseg0 and
  cast it to a long so it will work on 64-bit targets.
  
  reset now works on octeon, so I don't have to power cycle the board as
  often.

Modified:
  head/sys/mips/cavium/octeon_machdep.c

Modified: head/sys/mips/cavium/octeon_machdep.c
==============================================================================
--- head/sys/mips/cavium/octeon_machdep.c	Fri Jan 22 08:51:58 2010	(r202784)
+++ head/sys/mips/cavium/octeon_machdep.c	Fri Jan 22 09:19:57 2010	(r202785)
@@ -99,7 +99,7 @@ platform_cpu_init()
 void
 platform_reset(void)
 {
-	((void(*)(void))0x1fc00000)();	/* Jump to this hex address */
+	((void(*)(void))(long)0x9fc00000)();	/* Jump to MIPS reset vector */
 }
 
 


More information about the svn-src-all mailing list