stos: bootvid: Add boot console support

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 03:40:34 +00:00
parent b2e4f35e9f
commit 26139ff1ab
5 changed files with 129 additions and 0 deletions
+4
View File
@@ -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);
}
}