This is not really a display. When the option is early_printkturned on, the same one is printk()used as before, in this case only the new boot console is registered, and printk()uses it in the early stages of loading.
Take a look at arch / arm / kernel / early_printk.c . You can see that:
- new console registered by function
register_console() - this console has a flag
CON_BOOT, so it is automatically registered as soon as the real console is registered. - printing is performed using a function
early_write(), which, in turn, uses a function printch()that is implemented for each platform separately
Where in the kernel source code is early_consoledisabled after initialization of the kernel console?
register_console():
if (bcon &&
((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) &&
!keep_bootcon) {
for_each_console(bcon)
if (bcon->flags & CON_BOOT)
unregister_console(bcon);
}
unregister_console() ( ).
?
- register_console(). :
?
. , , .
, , , . , .config *_defconfig . , .
- , register_console(), , , .