Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2010 00:24:31 +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: r202850 - head/sys/mips/cavium
Message-ID:  <201001230024.o0N0OWEC038553@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Jan 23 00:24:31 2010
New Revision: 202850
URL: http://svn.freebsd.org/changeset/base/202850

Log:
  Migrate from old "DDB" style debugger to newer KDB style.

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

Modified: head/sys/mips/cavium/octeon_machdep.c
==============================================================================
--- head/sys/mips/cavium/octeon_machdep.c	Sat Jan 23 00:18:12 2010	(r202849)
+++ head/sys/mips/cavium/octeon_machdep.c	Sat Jan 23 00:24:31 2010	(r202850)
@@ -110,7 +110,7 @@ platform_cpu_init()
 void
 platform_reset(void)
 {
-	((void(*)(void))(long)0x9fc00000)();	/* Jump to MIPS reset vector */
+	mips_generic_reset();
 }
 
 
@@ -757,8 +757,10 @@ platform_start(__register_t a0, __regist
 	pmap_bootstrap();
 	mips_proc0_init();
 	mutex_init();
-#ifdef DDB
 	kdb_init();
+#ifdef KDB
+	if (boothowto & RB_KDB)
+		kdb_enter(KDB_WHY_BOOTFLAGS, "Boot flags requested debugger");
 #endif
 	platform_counter_freq = octeon_get_clock_rate();
 	mips_timer_init_params(platform_counter_freq, 1);



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