mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +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/RPi/UART.h>
|
||||||
#include <Kernel/Arch/aarch64/Registers.h>
|
#include <Kernel/Arch/aarch64/Registers.h>
|
||||||
#include <Kernel/Arch/aarch64/TrapFrame.h>
|
#include <Kernel/Arch/aarch64/TrapFrame.h>
|
||||||
|
#include <Kernel/Devices/DeviceManagement.h>
|
||||||
#include <Kernel/Graphics/Console/BootFramebufferConsole.h>
|
#include <Kernel/Graphics/Console/BootFramebufferConsole.h>
|
||||||
#include <Kernel/KSyms.h>
|
#include <Kernel/KSyms.h>
|
||||||
#include <Kernel/Panic.h>
|
#include <Kernel/Panic.h>
|
||||||
|
@ -100,9 +101,6 @@ extern "C" [[noreturn]] void init()
|
||||||
(*ctor)();
|
(*ctor)();
|
||||||
kmalloc_init();
|
kmalloc_init();
|
||||||
|
|
||||||
for (ctor_func_t* ctor = start_ctors; ctor < end_ctors; ctor++)
|
|
||||||
(*ctor)();
|
|
||||||
|
|
||||||
load_kernel_symbol_table();
|
load_kernel_symbol_table();
|
||||||
|
|
||||||
auto& framebuffer = RPi::Framebuffer::the();
|
auto& framebuffer = RPi::Framebuffer::the();
|
||||||
|
@ -112,6 +110,13 @@ extern "C" [[noreturn]] void init()
|
||||||
}
|
}
|
||||||
dmesgln("Starting SerenityOS...");
|
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();
|
initialize_interrupts();
|
||||||
InterruptManagement::initialize();
|
InterruptManagement::initialize();
|
||||||
Processor::enable_interrupts();
|
Processor::enable_interrupts();
|
||||||
|
|
|
@ -472,6 +472,8 @@ else()
|
||||||
MiniStdLib.cpp
|
MiniStdLib.cpp
|
||||||
UBSanitizer.cpp
|
UBSanitizer.cpp
|
||||||
|
|
||||||
|
Devices/DeviceManagement.cpp
|
||||||
|
|
||||||
Graphics/Console/BootFramebufferConsole.cpp
|
Graphics/Console/BootFramebufferConsole.cpp
|
||||||
Graphics/Console/GenericFramebufferConsole.cpp
|
Graphics/Console/GenericFramebufferConsole.cpp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue