diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2022-05-11 16:54:03 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-02 13:14:12 +0100 |
commit | 2fd5e9f7298dd86ddb30e4d75f84cb649077d4b8 (patch) | |
tree | 4e62d76341fcea3297b4e1e71affdc85832f4447 /Kernel/Arch/Interrupts.h | |
parent | f1baa56cc8ed81cb68aff9794c6278d3c100a48e (diff) | |
download | serenity-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.h | 24 |
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&); + +} |