Kernel: Include DeviceManagement as a part of aarch64

This commit is contained in:
Filiph Sandström 2022-08-06 19:47:20 +02:00 committed by Linus Groh
parent 45aeba15c8
commit fcd1cf4e1b
Notes: sideshowbarker 2024-07-17 20:22:04 +09:00
2 changed files with 10 additions and 3 deletions

View File

@ -22,6 +22,7 @@
#include <Kernel/Arch/aarch64/RPi/UART.h>
#include <Kernel/Arch/aarch64/Registers.h>
#include <Kernel/Arch/aarch64/TrapFrame.h>
#include <Kernel/Devices/DeviceManagement.h>
#include <Kernel/Graphics/Console/BootFramebufferConsole.h>
#include <Kernel/KSyms.h>
#include <Kernel/Panic.h>
@ -100,9 +101,6 @@ extern "C" [[noreturn]] void init()
(*ctor)();
kmalloc_init();
for (ctor_func_t* ctor = start_ctors; ctor < end_ctors; ctor++)
(*ctor)();
load_kernel_symbol_table();
auto& framebuffer = RPi::Framebuffer::the();
@ -112,6 +110,13 @@ extern "C" [[noreturn]] void init()
}
dmesgln("Starting SerenityOS...");
DeviceManagement::initialize();
// Invoke all static global constructors in the kernel.
// Note that we want to do this as early as possible.
for (ctor_func_t* ctor = start_ctors; ctor < end_ctors; ctor++)
(*ctor)();
initialize_interrupts();
InterruptManagement::initialize();
Processor::enable_interrupts();

View File

@ -472,6 +472,8 @@ else()
MiniStdLib.cpp
UBSanitizer.cpp
Devices/DeviceManagement.cpp
Graphics/Console/BootFramebufferConsole.cpp
Graphics/Console/GenericFramebufferConsole.cpp