summaryrefslogtreecommitdiff
path: root/Kernel/Arch/Interrupts.h
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2022-05-11 16:54:03 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-02 13:14:12 +0100
commit2fd5e9f7298dd86ddb30e4d75f84cb649077d4b8 (patch)
tree4e62d76341fcea3297b4e1e71affdc85832f4447 /Kernel/Arch/Interrupts.h
parentf1baa56cc8ed81cb68aff9794c6278d3c100a48e (diff)
downloadserenity-2fd5e9f7298dd86ddb30e4d75f84cb649077d4b8.zip
Kernel: Add GenericInterruptHandler.cpp to aarch64 build
This requires us to add an Interrupts.h file in the Kernel/Arch directory, which includes the architecture specific files. The commit also stubs out the functions to be able to compile the aarch64 Kernel.
Diffstat (limited to 'Kernel/Arch/Interrupts.h')
-rw-r--r--Kernel/Arch/Interrupts.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Kernel/Arch/Interrupts.h b/Kernel/Arch/Interrupts.h
new file mode 100644
index 0000000000..5b41ccab77
--- /dev/null
+++ b/Kernel/Arch/Interrupts.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/Platform.h>
+#include <AK/Types.h>
+
+#if ARCH(X86_64) || ARCH(I386)
+# include <Kernel/Arch/x86/Interrupts.h>
+#endif
+
+namespace Kernel {
+
+class GenericInterruptHandler;
+
+GenericInterruptHandler& get_interrupt_handler(u8 interrupt_number);
+void register_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
+void unregister_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
+
+}