summaryrefslogtreecommitdiffstats
path: root/sys/mips/idt/idt_machdep.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-01-23 00:18:12 +0000
committerimp <imp@FreeBSD.org>2010-01-23 00:18:12 +0000
commit9a3fba3cb845edd8c5df0dbd80c4cdbf3fd73a23 (patch)
tree2cfbe6eac14b373c767e97b4404b2dbd77e01ffb /sys/mips/idt/idt_machdep.c
parent231fd8e7071992b0c7c3477ab1fd3dd9356ade28 (diff)
downloadFreeBSD-src-9a3fba3cb845edd8c5df0dbd80c4cdbf3fd73a23.zip
FreeBSD-src-9a3fba3cb845edd8c5df0dbd80c4cdbf3fd73a23.tar.gz
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.
Diffstat (limited to 'sys/mips/idt/idt_machdep.c')
-rw-r--r--sys/mips/idt/idt_machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/mips/idt/idt_machdep.c b/sys/mips/idt/idt_machdep.c
index eebe608..c41e4c3 100644
--- a/sys/mips/idt/idt_machdep.c
+++ b/sys/mips/idt/idt_machdep.c
@@ -191,7 +191,9 @@ platform_start(__register_t a0, __register_t a1,
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
}
OpenPOWER on IntegriCloud