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:
parent
a70b93a356
commit
aca0293f0b
2 changed files with 3 additions and 1 deletions
|
@ -197,8 +197,9 @@ uartconsinit(void)
|
||||||
uartctl(uart, "l8 pn s1");
|
uartctl(uart, "l8 pn s1");
|
||||||
if(*cmd != '\0')
|
if(*cmd != '\0')
|
||||||
uartctl(uart, cmd);
|
uartctl(uart, cmd);
|
||||||
consuart = uart;
|
|
||||||
uart->console = 1;
|
uart->console = 1;
|
||||||
|
consuart = uart;
|
||||||
|
uartputs(kmesg.buf, kmesg.n);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -162,6 +162,7 @@ screeninit(void)
|
||||||
memimageinit();
|
memimageinit();
|
||||||
memdefont = getmemdefont();
|
memdefont = getmemdefont();
|
||||||
screenwin();
|
screenwin();
|
||||||
|
myscreenputs(kmesg.buf, kmesg.n);
|
||||||
screenputs = myscreenputs;
|
screenputs = myscreenputs;
|
||||||
swcursorinit();
|
swcursorinit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue