소스 검색

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.
Idan Horowitz 4 년 전
부모
커밋
3ad0a0d8c3
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Kernel/init.cpp

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