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.
This commit is contained in:
Warner Losh 2010-01-23 00:18:12 +00:00
parent ad4fe553c5
commit 657a57d730
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202849
6 changed files with 19 additions and 6 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -256,7 +256,9 @@ platform_start(__register_t a0 __unused, __register_t a1 __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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}