Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 09:19:57 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202785 - head/sys/mips/cavium
Message-ID:  <201001220919.o0M9JvQj019724@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */
 }
 
 



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