Date: Sat, 23 Jan 2010 00:18:12 +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: r202849 - in head/sys/mips: adm5120 alchemy atheros idt malta sentry5 Message-ID: <201001230018.o0N0ICmH036771@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Sat Jan 23 00:18:12 2010 New Revision: 202849 URL: http://svn.freebsd.org/changeset/base/202849 Log: Update from old DDB convetion to initialize debugger to new KDB way. Always call kdb_init(). If we have KDB enabled, then provide a handy place to break to the debugger. Modified: head/sys/mips/adm5120/adm5120_machdep.c head/sys/mips/alchemy/alchemy_machdep.c head/sys/mips/atheros/ar71xx_machdep.c head/sys/mips/idt/idt_machdep.c head/sys/mips/malta/malta_machdep.c head/sys/mips/sentry5/s5_machdep.c Modified: head/sys/mips/adm5120/adm5120_machdep.c ============================================================================== --- head/sys/mips/adm5120/adm5120_machdep.c Fri Jan 22 23:56:46 2010 (r202848) +++ head/sys/mips/adm5120/adm5120_machdep.c Sat Jan 23 00:18:12 2010 (r202849) @@ -105,8 +105,10 @@ mips_init(void) 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 } Modified: head/sys/mips/alchemy/alchemy_machdep.c ============================================================================== --- head/sys/mips/alchemy/alchemy_machdep.c Fri Jan 22 23:56:46 2010 (r202848) +++ head/sys/mips/alchemy/alchemy_machdep.c Sat Jan 23 00:18:12 2010 (r202849) @@ -105,8 +105,11 @@ mips_init(void) 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 } Modified: head/sys/mips/atheros/ar71xx_machdep.c ============================================================================== --- head/sys/mips/atheros/ar71xx_machdep.c Fri Jan 22 23:56:46 2010 (r202848) +++ head/sys/mips/atheros/ar71xx_machdep.c Sat Jan 23 00:18:12 2010 (r202849) @@ -256,7 +256,9 @@ platform_start(__register_t a0 __unused, (32 << USB_CTRL_FLADJ_HOST_SHIFT) | (3 << USB_CTRL_FLADJ_A5_SHIFT)); DELAY(1000); -#ifdef DDB kdb_init(); +#ifdef KDB + if (boothowto & RB_KDB) + kdb_enter(KDB_WHY_BOOTFLAGS, "Boot flags requested debugger"); #endif } Modified: head/sys/mips/idt/idt_machdep.c ============================================================================== --- head/sys/mips/idt/idt_machdep.c Fri Jan 22 23:56:46 2010 (r202848) +++ head/sys/mips/idt/idt_machdep.c Sat Jan 23 00:18:12 2010 (r202849) @@ -191,7 +191,9 @@ 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 } Modified: head/sys/mips/malta/malta_machdep.c ============================================================================== --- head/sys/mips/malta/malta_machdep.c Fri Jan 22 23:56:46 2010 (r202848) +++ head/sys/mips/malta/malta_machdep.c Sat Jan 23 00:18:12 2010 (r202849) @@ -189,8 +189,10 @@ mips_init(void) 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 } Modified: head/sys/mips/sentry5/s5_machdep.c ============================================================================== --- head/sys/mips/sentry5/s5_machdep.c Fri Jan 22 23:56:46 2010 (r202848) +++ head/sys/mips/sentry5/s5_machdep.c Sat Jan 23 00:18:12 2010 (r202849) @@ -136,8 +136,10 @@ mips_init(void) 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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001230018.o0N0ICmH036771>