diff options
author | Liav A <liavalb@gmail.com> | 2022-10-04 13:46:11 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-28 11:53:41 +0100 |
commit | 91db482ad333459a8513c98e6488087f327f5d2d (patch) | |
tree | 711d0313bd8caa4ee2e02246d63b786a153129be /Kernel/Arch/x86/Interrupts.h | |
parent | 5ff318cf3ac7d12470c357ba0bac8cd7ffa10e3e (diff) | |
download | serenity-91db482ad333459a8513c98e6488087f327f5d2d.zip |
Kernel: Reorganize Arch/x86 directory to Arch/x86_64 after i686 removal
No functional change.
Diffstat (limited to 'Kernel/Arch/x86/Interrupts.h')
-rw-r--r-- | Kernel/Arch/x86/Interrupts.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Kernel/Arch/x86/Interrupts.h b/Kernel/Arch/x86/Interrupts.h deleted file mode 100644 index 79d0861491..0000000000 --- a/Kernel/Arch/x86/Interrupts.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> - * Copyright (c) 2021, Leon Albrecht <leon2002.la@gmail.com> - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include <AK/Types.h> -#include <Kernel/Interrupts/GenericInterruptHandler.h> - -#include <AK/Platform.h> -VALIDATE_IS_X86() - -namespace Kernel { - -class GenericInterruptHandler; - -extern "C" void interrupt_common_asm_entry(); - -#define INTERRUPT_HANDLER_PUSH_PADDING "pushw $0\npushw $0\n" - -// clang-format off -#define GENERATE_GENERIC_INTERRUPT_HANDLER_ASM_ENTRY(isr_number) \ - extern "C" void interrupt_##isr_number##_asm_entry(); \ - static void interrupt_##isr_number##_asm_entry_dummy() __attribute__((used)); \ - NEVER_INLINE void interrupt_##isr_number##_asm_entry_dummy() \ - { \ - asm(".globl interrupt_" #isr_number "_asm_entry\n" \ - "interrupt_" #isr_number "_asm_entry:\n" \ - INTERRUPT_HANDLER_PUSH_PADDING \ - " pushw $" #isr_number "\n" \ - " pushw $0\n" \ - " jmp interrupt_common_asm_entry\n"); \ - } -// clang-format on - -void register_interrupt_handler(u8 number, void (*handler)()); -void register_user_callable_interrupt_handler(u8 number, void (*handler)()); -void register_disabled_interrupt_handler(u8 number, GenericInterruptHandler& handler); - -} |