From 83380ebebc7ccf4b2d988f4d0add8e7fc33c350b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filiph=20Sandstr=C3=B6m?= Date: Thu, 8 Dec 2022 02:42:39 +0100 Subject: [PATCH] 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. --- Kernel/Arch/aarch64/init.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Kernel/Arch/aarch64/init.cpp b/Kernel/Arch/aarch64/init.cpp index de8743b511a..16907ed91c8 100644 --- a/Kernel/Arch/aarch64/init.cpp +++ b/Kernel/Arch/aarch64/init.cpp @@ -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);