mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +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:
parent
306d898ee5
commit
eb9c82a487
Notes:
sideshowbarker
2024-07-18 08:19:47 +09:00
Author: https://github.com/alimpfard
Commit: eb9c82a487
Pull-request: https://github.com/SerenityOS/serenity/pull/9018
Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue