From 6234a5bc0b7ac3d86e72fcdc529b8703fec98227 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 6 Mar 2024 16:00:19 +0200 Subject: [PATCH] Kernel: Move multiprocessor initialize after framebuffer is created This allows getting output before multiprocessor is started. --- kernel/kernel/kernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/kernel/kernel.cpp b/kernel/kernel/kernel.cpp index b37131733f..0291fbd7de 100644 --- a/kernel/kernel/kernel.cpp +++ b/kernel/kernel/kernel.cpp @@ -125,8 +125,6 @@ extern "C" void kernel_main(uint32_t boot_magic, uint32_t boot_info) SystemTimer::initialize(cmdline.force_pic); dprintln("Timers initialized"); - InterruptController::get().initialize_multiprocessor(); - DevFileSystem::initialize(); dprintln("devfs initialized"); @@ -139,6 +137,8 @@ extern "C" void kernel_main(uint32_t boot_magic, uint32_t boot_info) if (g_terminal_driver) dprintln("Framebuffer terminal initialized"); + InterruptController::get().initialize_multiprocessor(); + ProcFileSystem::initialize(); dprintln("procfs initialized");