1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 07:34:59 +00:00

Kernel: Move ConsoleDevice initialization just after kmalloc init

This will ensure we will get all the kernel log on the second tty.
This commit is contained in:
Liav A 2021-05-14 16:52:21 +03:00 committed by Andreas Kling
parent dbccfc3281
commit 8cbf3d88ff

View file

@ -125,6 +125,7 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
kmalloc_init(); kmalloc_init();
slab_alloc_init(); slab_alloc_init();
ConsoleDevice::initialize();
s_bsp_processor.initialize(0); s_bsp_processor.initialize(0);
CommandLine::initialize(); 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++) for (ctor_func_t* ctor = &start_ctors; ctor < &end_ctors; ctor++)
(*ctor)(); (*ctor)();
ConsoleDevice::initialize();
APIC::initialize(); APIC::initialize();
InterruptManagement::initialize(); InterruptManagement::initialize();
ACPI::initialize(); ACPI::initialize();