mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:54:57 +00:00
Kernel: Separate framebuffers from bootmode
Bootmode used to control framebuffers, panic behavior, and SystemServer. This patch factors framebuffer control into a separate flag. Note that the combination 'bootmode=self-test fbdev=on' leads to unexpected behavior, which can only be fixed in a later commit.
This commit is contained in:
parent
314b8a374b
commit
542a88a7be
16 changed files with 26 additions and 26 deletions
|
@ -214,10 +214,9 @@ BootMode CommandLine::boot_mode(Validate should_validate) const
|
|||
return BootMode::Unknown;
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT bool CommandLine::is_no_framebuffer_devices_mode() const
|
||||
UNMAP_AFTER_INIT bool CommandLine::are_framebuffer_devices_enabled() const
|
||||
{
|
||||
const auto mode = boot_mode();
|
||||
return mode == BootMode::NoFramebufferDevices || mode == BootMode::SelfTest;
|
||||
return lookup("fbdev"sv).value_or("on"sv) == "on"sv;
|
||||
}
|
||||
|
||||
StringView CommandLine::userspace_init() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue