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/adm5120/adm5120_machdep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/mips/adm5120') diff --git a/sys/mips/adm5120/adm5120_machdep.c b/sys/mips/adm5120/adm5120_machdep.c index 15ecef2..b0f26ab 100644 --- a/sys/mips/adm5120/adm5120_machdep.c +++ b/sys/mips/adm5120/adm5120_machdep.c @@ -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 } -- cgit v1.1