1
Fork 0
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:
Ben Wiederhake 2021-10-23 17:18:57 +02:00 committed by Andreas Kling
parent 314b8a374b
commit 542a88a7be
16 changed files with 26 additions and 26 deletions

View file

@ -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