diff options
Diffstat (limited to 'Kernel/CommandLine.cpp')
-rw-r--r-- | Kernel/CommandLine.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index 1bf2f0a228..8f9d24bdd4 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -135,6 +135,16 @@ UNMAP_AFTER_INIT bool CommandLine::is_ioapic_enabled() const PANIC("Unknown enable_ioapic setting: {}", value); } +UNMAP_AFTER_INIT bool CommandLine::is_early_boot_console_disabled() const +{ + auto value = lookup("early_boot_console"sv).value_or("on"sv); + if (value == "on"sv) + return false; + if (value == "off"sv) + return true; + PANIC("Unknown early_boot_console setting: {}", value); +} + UNMAP_AFTER_INIT bool CommandLine::is_vmmouse_enabled() const { return lookup("vmmouse"sv).value_or("on"sv) == "on"sv; |