mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 21:37:58 +03:00
Kernel: Include DeviceManagement
as a part of aarch64
This commit is contained in:
parent
45aeba15c8
commit
fcd1cf4e1b
Notes:
sideshowbarker
2024-07-17 20:22:04 +09:00
Author: https://github.com/filiphsps Commit: https://github.com/SerenityOS/serenity/commit/fcd1cf4e1b Pull-request: https://github.com/SerenityOS/serenity/pull/14815 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/FireFox317 ✅ Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
@ -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…
Reference in New Issue
Block a user