bcm: flush out early boot messages on uart and screen initialization

make early boot messages available by writing out
kmesg.buf after uart and screen initialization.
This commit is contained in:
cinap_lenrek 2019-08-22 02:52:21 +02:00
parent a70b93a356
commit aca0293f0b
2 changed files with 3 additions and 1 deletions

View file

@ -197,8 +197,9 @@ uartconsinit(void)
uartctl(uart, "l8 pn s1");
if(*cmd != '\0')
uartctl(uart, cmd);
consuart = uart;
uart->console = 1;
consuart = uart;
uartputs(kmesg.buf, kmesg.n);
}
void

View file

@ -162,6 +162,7 @@ screeninit(void)
memimageinit();
memdefont = getmemdefont();
screenwin();
myscreenputs(kmesg.buf, kmesg.n);
screenputs = myscreenputs;
swcursorinit();
}