浏览代码

Kernel: Move ConsoleDevice initialization just after kmalloc init

This will ensure we will get all the kernel log on the second tty.
Liav A 4 年之前
父节点
当前提交
8cbf3d88ff
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Kernel/init.cpp

+ 1 - 2
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();