From 2fd5e9f7298dd86ddb30e4d75f84cb649077d4b8 Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Wed, 11 May 2022 16:54:03 +0200 Subject: 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. --- Kernel/Arch/Interrupts.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Kernel/Arch/Interrupts.h (limited to 'Kernel/Arch/Interrupts.h') 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 + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include +#include + +#if ARCH(X86_64) || ARCH(I386) +# include +#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&); + +} -- cgit v1.2.3