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

Kernel: Un-unmap-after-init CommandLine::boot_mode()

This function is now used when the kernel panics, so unmapping it would
make the kernel panic while in panic, which is not a good thing :P
This commit is contained in:
Ali Mohammad Pur 2021-07-26 13:53:47 +04:30 committed by Gunnar Beutner
parent 306d898ee5
commit eb9c82a487

View file

@ -191,7 +191,7 @@ UNMAP_AFTER_INIT AHCIResetMode CommandLine::ahci_reset_mode() const
PANIC("Unknown AHCIResetMode: {}", ahci_reset_mode);
}
UNMAP_AFTER_INIT BootMode CommandLine::boot_mode() const
BootMode CommandLine::boot_mode() const
{
const auto boot_mode = lookup("boot_mode"sv).value_or("graphical"sv);
if (boot_mode == "no-fbdev"sv) {