]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Stop using early_putc immediately after configuring console with cninit()
authorZbigniew Bodek <zbb@FreeBSD.org>
Wed, 19 Nov 2014 14:23:29 +0000 (14:23 +0000)
committerZbigniew Bodek <zbb@FreeBSD.org>
Wed, 19 Nov 2014 14:23:29 +0000 (14:23 +0000)
commitdc61566f95c45818a8df3654ec517caddaf4b650
treeffcc2dafa757182e54ebf468d04f3dc982995212
parent46ad509bf8c5e3fd881a70be4e4bc2cced054b86
Stop using early_putc immediately after configuring console with cninit()

Early UART should be released right after system console initialization is
completed. Otherwise, after cninit() both early and system console coexist
what may lead to various issues (i.a. writing to unmapped early
UART address). This cannot be done in cninit_finish() since it can be
called late at the end of MI configuration.

Obtained from:   Semihalf
Reviewed by:     andrew
Sponsored by:    The FreeBSD Foundation
sys/kern/kern_cons.c