mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:45:09 +00:00
Kernel/Devices: Use try_create_device helper for ConsoleDevice
This commit is contained in:
parent
5e8dcb9ca7
commit
fd4397a430
8 changed files with 43 additions and 26 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue