summaryrefslogtreecommitdiff
path: root/Kernel/Arch
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2021-06-22 17:40:16 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-24 00:38:23 +0200
commit62f9377656a18bcca1b1616f43dc3ba85dedd8c0 (patch)
treec7026c4d994088e332d8c1021481336f51ebbf35 /Kernel/Arch
parent925be2758ec5d2bce226a5284dd8960b7bd3f09a (diff)
downloadserenity-62f9377656a18bcca1b1616f43dc3ba85dedd8c0.zip
Kernel: Move special sections into Sections.h
This also removes a lot of CPU.h includes infavor for Sections.h
Diffstat (limited to 'Kernel/Arch')
-rw-r--r--Kernel/Arch/x86/CPU.h3
-rw-r--r--Kernel/Arch/x86/common/ASM_wrapper.cpp2
-rw-r--r--Kernel/Arch/x86/common/Interrupts.cpp1
-rw-r--r--Kernel/Arch/x86/common/Processor.cpp2
-rw-r--r--Kernel/Arch/x86/i386/ASM_wrapper.cpp2
-rw-r--r--Kernel/Arch/x86/i386/Processor.cpp2
-rw-r--r--Kernel/Arch/x86/x86_64/ASM_wrapper.cpp2
-rw-r--r--Kernel/Arch/x86/x86_64/Processor.cpp2
8 files changed, 7 insertions, 9 deletions
diff --git a/Kernel/Arch/x86/CPU.h b/Kernel/Arch/x86/CPU.h
index 32c1bde4f2..298ed8d12a 100644
--- a/Kernel/Arch/x86/CPU.h
+++ b/Kernel/Arch/x86/CPU.h
@@ -11,9 +11,6 @@
#include <Kernel/Arch/x86/DescriptorTable.h>
-#define READONLY_AFTER_INIT __attribute__((section(".ro_after_init")))
-#define UNMAP_AFTER_INIT NEVER_INLINE __attribute__((section(".unmap_after_init")))
-
/* Map IRQ0-15 @ ISR 0x50-0x5F */
#define IRQ_VECTOR_BASE 0x50
#define GENERIC_INTERRUPT_HANDLERS_COUNT (256 - IRQ_VECTOR_BASE)
diff --git a/Kernel/Arch/x86/common/ASM_wrapper.cpp b/Kernel/Arch/x86/common/ASM_wrapper.cpp
index 787f291225..49f33dd3e8 100644
--- a/Kernel/Arch/x86/common/ASM_wrapper.cpp
+++ b/Kernel/Arch/x86/common/ASM_wrapper.cpp
@@ -7,8 +7,8 @@
#include <AK/Types.h>
#include <Kernel/Arch/x86/ASM_wrapper.h>
-#include <Kernel/Arch/x86/CPU.h>
#include <Kernel/Arch/x86/Processor.h>
+#include <Kernel/Sections.h>
namespace Kernel {
diff --git a/Kernel/Arch/x86/common/Interrupts.cpp b/Kernel/Arch/x86/common/Interrupts.cpp
index bcd5e5e663..a5b619735f 100644
--- a/Kernel/Arch/x86/common/Interrupts.cpp
+++ b/Kernel/Arch/x86/common/Interrupts.cpp
@@ -15,6 +15,7 @@
#include <Kernel/PerformanceManager.h>
#include <Kernel/Process.h>
#include <Kernel/Random.h>
+#include <Kernel/Sections.h>
#include <Kernel/Thread.h>
#include <LibC/mallocdefs.h>
diff --git a/Kernel/Arch/x86/common/Processor.cpp b/Kernel/Arch/x86/common/Processor.cpp
index 17d798cc20..96281902d7 100644
--- a/Kernel/Arch/x86/common/Processor.cpp
+++ b/Kernel/Arch/x86/common/Processor.cpp
@@ -12,11 +12,11 @@
#include <Kernel/Interrupts/APIC.h>
#include <Kernel/Process.h>
#include <Kernel/Random.h>
+#include <Kernel/Sections.h>
#include <Kernel/StdLib.h>
#include <Kernel/Thread.h>
#include <Kernel/VM/ProcessPagingScope.h>
-#include <Kernel/Arch/x86/CPU.h>
#include <Kernel/Arch/x86/CPUID.h>
#include <Kernel/Arch/x86/Interrupts.h>
#include <Kernel/Arch/x86/Processor.h>
diff --git a/Kernel/Arch/x86/i386/ASM_wrapper.cpp b/Kernel/Arch/x86/i386/ASM_wrapper.cpp
index f5ba002a5a..449529e8f2 100644
--- a/Kernel/Arch/x86/i386/ASM_wrapper.cpp
+++ b/Kernel/Arch/x86/i386/ASM_wrapper.cpp
@@ -7,8 +7,8 @@
#include <AK/Types.h>
#include <Kernel/Arch/x86/ASM_wrapper.h>
-#include <Kernel/Arch/x86/CPU.h>
#include <Kernel/Arch/x86/Processor.h>
+#include <Kernel/Sections.h>
namespace Kernel {
diff --git a/Kernel/Arch/x86/i386/Processor.cpp b/Kernel/Arch/x86/i386/Processor.cpp
index 4c35e351d9..dd08a0813a 100644
--- a/Kernel/Arch/x86/i386/Processor.cpp
+++ b/Kernel/Arch/x86/i386/Processor.cpp
@@ -5,12 +5,12 @@
*/
#include <AK/StdLibExtras.h>
-#include <Kernel/Arch/x86/CPU.h>
#include <Kernel/Arch/x86/Processor.h>
#include <Kernel/Arch/x86/TrapFrame.h>
#include <Kernel/Panic.h>
#include <Kernel/Process.h>
#include <Kernel/Random.h>
+#include <Kernel/Sections.h>
#include <Kernel/Thread.h>
namespace Kernel {
diff --git a/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp b/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp
index 9a463bf1b4..754f453fe7 100644
--- a/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp
+++ b/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp
@@ -7,8 +7,8 @@
#include <AK/Types.h>
#include <Kernel/Arch/x86/ASM_wrapper.h>
-#include <Kernel/Arch/x86/CPU.h>
#include <Kernel/Arch/x86/Processor.h>
+#include <Kernel/Sections.h>
namespace Kernel {
diff --git a/Kernel/Arch/x86/x86_64/Processor.cpp b/Kernel/Arch/x86/x86_64/Processor.cpp
index 17dae9352b..7db6c9ad4c 100644
--- a/Kernel/Arch/x86/x86_64/Processor.cpp
+++ b/Kernel/Arch/x86/x86_64/Processor.cpp
@@ -5,12 +5,12 @@
*/
#include <AK/StdLibExtras.h>
-#include <Kernel/Arch/x86/CPU.h>
#include <Kernel/Arch/x86/Processor.h>
#include <Kernel/Arch/x86/TrapFrame.h>
#include <Kernel/Panic.h>
#include <Kernel/Process.h>
#include <Kernel/Random.h>
+#include <Kernel/Sections.h>
#include <Kernel/Thread.h>
namespace Kernel {