mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Perform DeviceManagement initialization after MM is initialized
There's no need to perform it this early, and until the MemoryManager is initialized we have very limited kmalloc capacity, so let's try and keep anything that's not required to be there out of there.
This commit is contained in:
parent
fa0a052fc6
commit
c9d026d7bc
Notes:
sideshowbarker
2024-07-17 20:13:53 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/c9d026d7bc5 Pull-request: https://github.com/SerenityOS/serenity/pull/12133 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 5 additions and 4 deletions
|
@ -182,15 +182,16 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
|
|||
|
||||
load_kernel_symbol_table();
|
||||
|
||||
s_bsp_processor.initialize(0);
|
||||
|
||||
CommandLine::initialize();
|
||||
Memory::MemoryManager::initialize(0);
|
||||
|
||||
DeviceManagement::initialize();
|
||||
SysFSComponentRegistry::initialize();
|
||||
DeviceManagement::the().attach_null_device(*NullDevice::must_initialize());
|
||||
DeviceManagement::the().attach_console_device(*ConsoleDevice::must_create());
|
||||
DeviceManagement::the().attach_device_control_device(*DeviceControlDevice::must_create());
|
||||
s_bsp_processor.initialize(0);
|
||||
|
||||
CommandLine::initialize();
|
||||
Memory::MemoryManager::initialize(0);
|
||||
|
||||
MM.unmap_prekernel();
|
||||
|
||||
|
|
Loading…
Reference in a new issue