diff options
author | imp <imp@FreeBSD.org> | 2010-01-23 00:18:12 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-01-23 00:18:12 +0000 |
commit | 9a3fba3cb845edd8c5df0dbd80c4cdbf3fd73a23 (patch) | |
tree | 2cfbe6eac14b373c767e97b4404b2dbd77e01ffb /sys/mips/malta | |
parent | 231fd8e7071992b0c7c3477ab1fd3dd9356ade28 (diff) | |
download | FreeBSD-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/malta')
-rw-r--r-- | sys/mips/malta/malta_machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/mips/malta/malta_machdep.c b/sys/mips/malta/malta_machdep.c index c596d4f..df70e24 100644 --- a/sys/mips/malta/malta_machdep.c +++ b/sys/mips/malta/malta_machdep.c @@ -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 } |