misc: changes from a long time ago

This commit is contained in:
2026-02-03 21:28:15 +00:00
parent c7d4463f7e
commit af0d97d6f5
10 changed files with 266 additions and 74 deletions

View File

@@ -1,7 +1,7 @@
#include "arch/serial.h"
#include <arch/e820.h>
#include <arch/pit.h>
#include <arch/serial.h>
#include <arch/vgacon.h>
#include <mango/arg.h>
#include <mango/clock.h>
#include <mango/console.h>
@@ -52,11 +52,12 @@ void early_console_init(void)
{
const char *dest = arg_value("kernel.early-console");
if (!dest) {
dest = "ttyS0";
dest = "tty0";
}
if (!strcmp(dest, "tty0")) {
/* show log messages on VGA */
vgacon_init();
} else if (!strcmp(dest, "ttyS0")) {
/* write log messages to serial port */
early_serialcon_init(115200);