From owner-svn-src-all@FreeBSD.ORG Sat Jan 23 00:24:33 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 172281065731; Sat, 23 Jan 2010 00:24:33 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 05BA38FC16; Sat, 23 Jan 2010 00:24:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o0N0OWXn038556; Sat, 23 Jan 2010 00:24:32 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0N0OWEC038553; Sat, 23 Jan 2010 00:24:32 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201001230024.o0N0OWEC038553@svn.freebsd.org> From: Warner Losh Date: Sat, 23 Jan 2010 00:24:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r202850 - head/sys/mips/cavium X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2010 00:24:33 -0000 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);