summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-09-11 11:19:33 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-12 11:52:16 +0200
commit33f033066c593f2f0c8ac97335643d968171260e (patch)
treebb095e33ec81afdd2d6b1c5f7df12b2c706be15a /Kernel/init.cpp
parent9132596b8e79a56a1ab0aa146bd837266ed61b09 (diff)
downloadserenity-33f033066c593f2f0c8ac97335643d968171260e.zip
Kernel: Unify BIOS and ACPI components in the SysFS firmware directory
Both should reside in the SysFS firmware directory which is normally located in /sys/firmware. Also, apply some OOM-safety patterns when creating the BIOS and ACPI directories.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index 130cdbc5ba..854b18a4b0 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -30,7 +30,7 @@
#include <Kernel/Firmware/ACPI/Initialize.h>
#include <Kernel/Firmware/ACPI/MultiProcessorParser.h>
#include <Kernel/Firmware/ACPI/Parser.h>
-#include <Kernel/Firmware/BIOS.h>
+#include <Kernel/Firmware/SysFSFirmware.h>
#include <Kernel/Graphics/GraphicsManagement.h>
#include <Kernel/Heap/SlabAllocator.h>
#include <Kernel/Heap/kmalloc.h>
@@ -300,9 +300,7 @@ void init_stage2(void*)
auto boot_profiling = kernel_command_line().is_boot_profiling_enabled();
USB::USBManagement::initialize();
-
- BIOSSysFSDirectory::initialize();
- ACPI::ACPISysFSDirectory::initialize();
+ FirmwareSysFSDirectory::initialize();
VirtIO::detect();