From 9a3fba3cb845edd8c5df0dbd80c4cdbf3fd73a23 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 23 Jan 2010 00:18:12 +0000 Subject: 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. --- sys/mips/idt/idt_machdep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/mips/idt/idt_machdep.c') 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 } -- cgit v1.1