diff options
author | Peter Elliott <pelliott@ualberta.ca> | 2022-04-28 01:19:32 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-29 19:52:32 +0200 |
commit | 12c7b954e14c0533ddb7da2dae095ad06b984d32 (patch) | |
tree | 9977720210344681c60a02706d3c442f986095d7 /Kernel | |
parent | 4b0be17c719bb867c18da6055c2daa4371f632c0 (diff) | |
download | serenity-12c7b954e14c0533ddb7da2dae095ad06b984d32.zip |
Kernel+WindowServer: Move setting tty graphical mode to Userspace
This will allow using the console tty and WindowServer regardless of
your kernel command line. Also this fixes a bug where, when booting in
text mode, the console was in graphical mode, and would not accept
input.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/init.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 19cf69139a..d564b3bd7d 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -377,9 +377,6 @@ void init_stage2(void*) // NOTE: Everything marked UNMAP_AFTER_INIT becomes inaccessible after this point. MM.unmap_text_after_init(); - // FIXME: It would be nicer to set the mode from userspace. - // FIXME: It would be smarter to not hardcode that the first tty is the only graphical one - ConsoleManagement::the().first_tty()->set_graphical(GraphicsManagement::the().framebuffer_devices_exist()); RefPtr<Thread> thread; auto userspace_init = kernel_command_line().userspace_init(); auto init_args = kernel_command_line().userspace_init_args(); |