From a390adcf35b5daf9b78e5d03e7826bedbaa3011b Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sat, 30 Sep 2023 21:14:40 +0200 Subject: [PATCH] Kernel: Load drivers before looking for the boot drive --- Kernel/Arch/init.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/Arch/init.cpp b/Kernel/Arch/init.cpp index 8f3bcd12e0..477f17a5c6 100644 --- a/Kernel/Arch/init.cpp +++ b/Kernel/Arch/init.cpp @@ -416,15 +416,15 @@ void init_stage2(void*) AudioManagement::the().initialize(); + // Initialize all USB Drivers + for (auto* init_function = driver_init_table_start; init_function != driver_init_table_end; init_function++) + (*init_function)(); + StorageManagement::the().initialize(kernel_command_line().root_device(), kernel_command_line().is_force_pio(), kernel_command_line().is_nvme_polling_enabled()); if (VirtualFileSystem::the().mount_root(StorageManagement::the().root_filesystem()).is_error()) { PANIC("VirtualFileSystem::mount_root failed"); } - // Initialise all USB Drivers - for (auto* init_function = driver_init_table_start; init_function != driver_init_table_end; init_function++) - (*init_function)(); - // Switch out of early boot mode. g_in_early_boot = false;