/* * Console initialization: called early on from main, */ void consinit(void) { if (sysconsole == 0) syscnattach(0); else { omfb_cnattach(); ws_cnattach(); } #if NKSYMS || defined(DDB) || defined(MODULAR) ksyms_addsyms_elf((esym != NULL) ? 1 : 0, (void *)&end, esym); #endif #ifdef DDB if (boothowto & RB_KDB) cpu_Debugger(); #endif }
/* * Early console initialization: called early on from main, before vm init. */ void consinit() { /* * Initialize the console before we print anything out. */ if (sysconsole == 0) { syscnattach(0); } else { omfb_cnattach(); ws_cnattach(); } #if defined(DDB) db_machine_init(); ddb_init(); if (boothowto & RB_KDB) Debugger(); #endif }
/* * Console initialization: called early on from main, */ void consinit() { if (sysconsole == 0) syscnattach(0); else { omfb_cnattach(); ws_cnattach(); } #if NKSYMS || defined(DDB) || defined(LKM) { extern char end[]; extern int *esym; ksyms_init(*(int *)&end, ((int *)&end) + 1, esym); } #endif #ifdef DDB if (boothowto & RB_KDB) cpu_Debugger(); #endif }