bootloader: Load driver settings before the kernel.

This way, parts of the bootloader (e.g. the ELF loader) that would
like to access driver settings can do so.
This commit is contained in:
Augustin Cavalier
2019-01-14 20:44:25 -05:00
parent 36f72031b1
commit c3361cad95
+2 -1
View File
@@ -86,6 +86,8 @@ main(stage2_args *args)
if (bootVolume.IsValid()) {
// we got a volume to boot from!
load_driver_settings(args, bootVolume.RootDirectory());
status_t status;
while ((status = load_kernel(args, bootVolume)) < B_OK) {
// loading the kernel failed, so let the user choose another
@@ -122,7 +124,6 @@ main(stage2_args *args)
platform_switch_to_logo();
load_modules(args, bootVolume);
load_driver_settings(args, bootVolume.RootDirectory());
// apply boot settings
apply_boot_settings();