diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2022-05-30 09:04:37 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-02 13:14:12 +0100 |
commit | f085903f62e07f80ba345d26a63e34fbd9f82235 (patch) | |
tree | 85f617657af94fe44b7cffac82cb6519913e0b1e /Kernel/Arch/IRQController.h | |
parent | 63ee2781fb89f97e370ce56f5a6634c60c463dea (diff) | |
download | serenity-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/IRQController.h')
-rw-r--r-- | Kernel/Arch/IRQController.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Kernel/Arch/IRQController.h b/Kernel/Arch/IRQController.h new file mode 100644 index 0000000000..b48d352863 --- /dev/null +++ b/Kernel/Arch/IRQController.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/IRQController.h> +#elif ARCH(AARCH64) +# include <Kernel/Arch/aarch64/IRQController.h> +#else +# error "Unknown architecture" +#endif |