Kernel/Devices: Use try_create_device helper for ConsoleDevice

This commit is contained in:
Liav A
2021-09-16 22:23:25 +03:00
committed by Idan Horowitz
parent 5e8dcb9ca7
commit fd4397a430
8 changed files with 43 additions and 26 deletions

View File

@@ -186,8 +186,7 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
DeviceManagement::initialize();
SysFSComponentRegistry::initialize();
DeviceManagement::the().attach_null_device(*NullDevice::must_initialize());
ConsoleDevice::initialize();
DeviceManagement::the().attach_console_device(*ConsoleDevice::must_create());
s_bsp_processor.initialize(0);
CommandLine::initialize();