From 8cbf3d88ff8237223c860128a92f43f11a3be17a Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 14 May 2021 16:52:21 +0300 Subject: [PATCH] Kernel: Move ConsoleDevice initialization just after kmalloc init This will ensure we will get all the kernel log on the second tty. --- Kernel/init.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 4c39640561..d2a47f8f92 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -125,6 +125,7 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init() kmalloc_init(); slab_alloc_init(); + ConsoleDevice::initialize(); s_bsp_processor.initialize(0); CommandLine::initialize(); @@ -139,8 +140,6 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init() for (ctor_func_t* ctor = &start_ctors; ctor < &end_ctors; ctor++) (*ctor)(); - ConsoleDevice::initialize(); - APIC::initialize(); InterruptManagement::initialize(); ACPI::initialize();