summaryrefslogtreecommitdiff
path: root/Kernel/TTY
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-09-16 22:23:25 +0300
committerIdan Horowitz <idan.horowitz@gmail.com>2021-09-17 01:02:48 +0300
commitfd4397a430c6c03a91e20f55c892d9f53509dd71 (patch)
tree6954441fb3e620f385a59aa8b0ea365de5c28969 /Kernel/TTY
parent5e8dcb9ca747cec1e15551e6a0fea09dd70820df (diff)
downloadserenity-fd4397a430c6c03a91e20f55c892d9f53509dd71.zip
Kernel/Devices: Use try_create_device helper for ConsoleDevice
Diffstat (limited to 'Kernel/TTY')
-rw-r--r--Kernel/TTY/ConsoleManagement.cpp4
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));