summaryrefslogtreecommitdiff
path: root/Kernel/Arch/InterruptManagement.h
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2022-05-30 09:04:37 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-02 13:14:12 +0100
commitf085903f62e07f80ba345d26a63e34fbd9f82235 (patch)
tree85f617657af94fe44b7cffac82cb6519913e0b1e /Kernel/Arch/InterruptManagement.h
parent63ee2781fb89f97e370ce56f5a6634c60c463dea (diff)
downloadserenity-f085903f62e07f80ba345d26a63e34fbd9f82235.zip
Kernel: Move IRQController and InterruptManagement to Arch directory
These 2 classes currently contain much code that is x86(_64) specific. Move them to the architecture specific directory. This also allows for a simpler implementation for aarch64.
Diffstat (limited to 'Kernel/Arch/InterruptManagement.h')
-rw-r--r--Kernel/Arch/InterruptManagement.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Kernel/Arch/InterruptManagement.h b/Kernel/Arch/InterruptManagement.h
new file mode 100644
index 0000000000..b78fd5dc87
--- /dev/null
+++ b/Kernel/Arch/InterruptManagement.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/Platform.h>
+
+#if ARCH(X86_64) || ARCH(I386)
+# include <Kernel/Arch/x86/InterruptManagement.h>
+#elif ARCH(AARCH64)
+# include <Kernel/Arch/aarch64/InterruptManagement.h>
+#else
+# error "Unknown architecture"
+#endif