Kernel/aarch64: Initialize components that are already working

`SysFSComponentRegistry`, `ProcFSComponentRegistry` and
`attach_null_device` "just work" already; let's include them to match
x86_64 as closely as possible.
This commit is contained in:
Filiph Sandström 2022-12-08 02:42:39 +01:00 committed by Sam Atkins
parent d6a3be1615
commit 83380ebebc
Notes: sideshowbarker 2024-07-17 03:39:26 +09:00

View file

@ -130,7 +130,8 @@ extern "C" [[noreturn]] void init()
dmesgln("Initialize MMU");
Memory::MemoryManager::initialize(0);
DeviceManagement::initialize();
JailManagement::the();
SysFSComponentRegistry::initialize();
DeviceManagement::the().attach_null_device(*NullDevice::must_initialize());
// Invoke all static global constructors in the kernel.
// Note that we want to do this as early as possible.
@ -149,6 +150,9 @@ extern "C" [[noreturn]] void init()
TimeManagement::initialize(0);
ProcFSComponentRegistry::initialize();
JailManagement::the();
auto firmware_version = query_firmware_version();
dmesgln("Firmware version: {}", firmware_version);