From f83ae1e9c6d54e49598f7b5011d84bea8fcacdf5 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 12 Jun 2023 22:37:34 +0300 Subject: [PATCH] Kernel: Move print during boot --- kernel/kernel/kernel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/kernel/kernel.cpp b/kernel/kernel/kernel.cpp index 5af8af50..ec587636 100644 --- a/kernel/kernel/kernel.cpp +++ b/kernel/kernel/kernel.cpp @@ -110,13 +110,16 @@ extern "C" void kernel_main() DISABLE_INTERRUPTS(); if (!should_disable_serial()) + { Serial::initialize(); + dprintln("Serial output initialized"); + } + if (g_multiboot_magic != 0x2BADB002) { dprintln("Invalid multiboot magic number"); return; } - dprintln("Serial output initialized"); kmalloc_initialize(); dprintln("kmalloc initialized");