mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Kernel: Include DeviceManagement
as a part of aarch64
This commit is contained in:
parent
45aeba15c8
commit
fcd1cf4e1b
2 changed files with 10 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -472,6 +472,8 @@ else()
|
|||
MiniStdLib.cpp
|
||||
UBSanitizer.cpp
|
||||
|
||||
Devices/DeviceManagement.cpp
|
||||
|
||||
Graphics/Console/BootFramebufferConsole.cpp
|
||||
Graphics/Console/GenericFramebufferConsole.cpp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue