summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-04-07 14:03:44 +0300
committerAndreas Kling <kling@serenityos.org>2021-05-17 18:15:25 +0200
commit3ad0a0d8c33b7cbe569533e6ffe73fa7f324347c (patch)
treeba8792610430677b941c198c257fa1e6a5d869db /Kernel
parent843f861f978b6b3287a2dec944492a680e367257 (diff)
downloadserenity-3ad0a0d8c33b7cbe569533e6ffe73fa7f324347c.zip
Kernel: Initialize the PCI Bus earlier in the boot sequence
We now initialize the PCI Bus as early as possible, to allow for early boot (PCI based) serial logging.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index d2a47f8f92..56b4f394d8 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -144,6 +144,9 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
InterruptManagement::initialize();
ACPI::initialize();
+ // Initialize the PCI Bus as early as possible, for early boot (PCI based) serial logging
+ PCI::initialize();
+
VFS::initialize();
dmesgln("Starting SerenityOS...");
@@ -162,7 +165,6 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
VMWareBackdoor::the(); // don't wait until first mouse packet
HIDManagement::initialize();
- PCI::initialize();
GraphicsManagement::the().initialize();
ConsoleManagement::the().initialize();