From eb9c82a4871e1c79ff662c13465ded275ef07080 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 26 Jul 2021 13:53:47 +0430 Subject: [PATCH] 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 --- Kernel/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index 18ac77c149..9353313715 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -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) {