diff options
author | Liav A <liavalb@gmail.com> | 2021-09-16 22:23:25 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-17 01:02:48 +0300 |
commit | fd4397a430c6c03a91e20f55c892d9f53509dd71 (patch) | |
tree | 6954441fb3e620f385a59aa8b0ea365de5c28969 /Kernel/TTY | |
parent | 5e8dcb9ca747cec1e15551e6a0fea09dd70820df (diff) | |
download | serenity-fd4397a430c6c03a91e20f55c892d9f53509dd71.zip |
Kernel/Devices: Use try_create_device helper for ConsoleDevice
Diffstat (limited to 'Kernel/TTY')
-rw-r--r-- | Kernel/TTY/ConsoleManagement.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/TTY/ConsoleManagement.cpp b/Kernel/TTY/ConsoleManagement.cpp index 038fba66d4..690e0b14b1 100644 --- a/Kernel/TTY/ConsoleManagement.cpp +++ b/Kernel/TTY/ConsoleManagement.cpp @@ -7,6 +7,7 @@ #include <AK/Singleton.h> #include <Kernel/CommandLine.h> #include <Kernel/Debug.h> +#include <Kernel/Devices/DeviceManagement.h> #include <Kernel/Graphics/GraphicsManagement.h> #include <Kernel/Panic.h> #include <Kernel/Sections.h> @@ -48,7 +49,8 @@ UNMAP_AFTER_INIT void ConsoleManagement::initialize() for (size_t index = 0; index < s_max_virtual_consoles; index++) { // FIXME: Better determine the debug TTY we chose... if (index == 1) { - m_consoles.append(VirtualConsole::create_with_preset_log(index, ConsoleDevice::the().logbuffer())); + VERIFY(DeviceManagement::the().is_console_device_attached()); + m_consoles.append(VirtualConsole::create_with_preset_log(index, DeviceManagement::the().console_device().logbuffer())); continue; } m_consoles.append(VirtualConsole::create(index)); |