mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Kernel: Load drivers before looking for the boot drive
This commit is contained in:
parent
f10dc9cb14
commit
a390adcf35
1 changed files with 4 additions and 4 deletions
|
@ -416,15 +416,15 @@ void init_stage2(void*)
|
||||||
|
|
||||||
AudioManagement::the().initialize();
|
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());
|
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()) {
|
if (VirtualFileSystem::the().mount_root(StorageManagement::the().root_filesystem()).is_error()) {
|
||||||
PANIC("VirtualFileSystem::mount_root failed");
|
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.
|
// Switch out of early boot mode.
|
||||||
g_in_early_boot = false;
|
g_in_early_boot = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue