diff options
author | Liav A <liavalb@gmail.com> | 2021-05-14 16:52:21 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-16 19:58:33 +0200 |
commit | 8cbf3d88ff8237223c860128a92f43f11a3be17a (patch) | |
tree | 68031021d3b580334b9c2deaf7fe44d9732abbd0 /Kernel | |
parent | dbccfc3281231e0109b275028cfe93791383ef36 (diff) | |
download | serenity-8cbf3d88ff8237223c860128a92f43f11a3be17a.zip |
Kernel: Move ConsoleDevice initialization just after kmalloc init
This will ensure we will get all the kernel log on the second tty.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/init.cpp | 3 |
1 files changed, 1 insertions, 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(); |