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
Notes: sideshowbarker 2024-07-18 08:19:47 +09:00

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) {