mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 21:21:50 +03: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:
parent
306d898ee5
commit
eb9c82a487
Notes:
sideshowbarker
2024-07-18 08:19:47 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/eb9c82a4871 Pull-request: https://github.com/SerenityOS/serenity/pull/9018 Reviewed-by: https://github.com/bgianfo ✅
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user