From 76aace6f19ac0c0903499b68d3d1caf69b902274 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 3 Sep 2022 19:57:09 +0300 Subject: [PATCH] Kernel: Move x86-specific init sequence code to the x86/Arch directory The code in init.cpp is specific to the x86 initialization sequence, so move it to the Arch/x86 directory in the same fashion like the aarch64 pattern. --- Kernel/{ => Arch/x86}/init.cpp | 0 Kernel/CMakeLists.txt | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename Kernel/{ => Arch/x86}/init.cpp (100%) diff --git a/Kernel/init.cpp b/Kernel/Arch/x86/init.cpp similarity index 100% rename from Kernel/init.cpp rename to Kernel/Arch/x86/init.cpp diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt index 59fc46d9be..47ec90127e 100644 --- a/Kernel/CMakeLists.txt +++ b/Kernel/CMakeLists.txt @@ -309,13 +309,14 @@ set(KERNEL_SOURCES UserOrKernelBuffer.cpp WaitQueue.cpp WorkQueue.cpp - init.cpp kprintf.cpp ) if ("${SERENITY_ARCH}" STREQUAL "i686" OR "${SERENITY_ARCH}" STREQUAL "x86_64") set(KERNEL_SOURCES ${KERNEL_SOURCES} + Arch/x86/init.cpp + Arch/Processor.cpp Arch/x86/common/Interrupts/APIC.cpp