stos: bootvid: Add boot console support
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -7,9 +7,13 @@
|
||||
*/
|
||||
|
||||
#include <hal/serial.h>
|
||||
#include <drivers/bootvid/fbio.h>
|
||||
|
||||
void
|
||||
_putchar(char c)
|
||||
{
|
||||
HalSerialWrite(&c, 1);
|
||||
if (BootVidConsEn()) {
|
||||
BootVidConsWrite(&c, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user