mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +00:00
Kernel: Allow to disable early boot console
This aid debugging on bare metal when we suspect that the boot console does something wrong that interferes with other kernel components.
This commit is contained in:
parent
0ef1137e88
commit
eca8f292a5
4 changed files with 23 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue