Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_cons.c
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
cninit(void) | cninit(void) | ||||
{ | { | ||||
struct consdev *best_cn, *cn, **list; | struct consdev *best_cn, *cn, **list; | ||||
/* | /* | ||||
* Check if we should mute the console (for security reasons perhaps) | * Check if we should mute the console (for security reasons perhaps) | ||||
* It can be changes dynamically using sysctl kern.consmute | * It can be changes dynamically using sysctl kern.consmute | ||||
* once we are up and going. | * once we are up and going. | ||||
* | |||||
*/ | */ | ||||
cn_mute = ((boothowto & (RB_MUTE | cn_mute = ((boothowto & (RB_MUTE | ||||
|RB_SINGLE | |RB_SINGLE | ||||
|RB_VERBOSE | |RB_VERBOSE | ||||
|RB_ASKNAME)) == RB_MUTE); | |RB_ASKNAME)) == RB_MUTE); | ||||
/* | /* | ||||
* Bring up the kbd layer just in time for cnprobe. Console drivers | * Bring up the kbd layer just in time for cnprobe. Console drivers | ||||
Show All 21 Lines | SET_FOREACH(list, cons_set) { | ||||
if (boothowto & RB_MULTIPLE) { | if (boothowto & RB_MULTIPLE) { | ||||
/* | /* | ||||
* Initialize console, and attach to it. | * Initialize console, and attach to it. | ||||
*/ | */ | ||||
cn->cn_ops->cn_init(cn); | cn->cn_ops->cn_init(cn); | ||||
cnadd(cn); | cnadd(cn); | ||||
} | } | ||||
} | } | ||||
emaste: changes in this file seem extraneous | |||||
if (best_cn == NULL) | if (best_cn == NULL) | ||||
return; | return; | ||||
if ((boothowto & RB_MULTIPLE) == 0) { | if ((boothowto & RB_MULTIPLE) == 0) { | ||||
best_cn->cn_ops->cn_init(best_cn); | best_cn->cn_ops->cn_init(best_cn); | ||||
cnadd(best_cn); | cnadd(best_cn); | ||||
} | } | ||||
if (boothowto & RB_PAUSE) | if (boothowto & RB_PAUSE) | ||||
console_pausing = 1; | console_pausing = 1; | ||||
▲ Show 20 Lines • Show All 581 Lines • Show Last 20 Lines |
changes in this file seem extraneous