1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

Kernel: Load drivers before looking for the boot drive

This commit is contained in:
Hendiadyoin1 2023-09-30 21:14:40 +02:00 committed by Andrew Kaster
parent f10dc9cb14
commit a390adcf35

View file

@ -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;