diff options
Diffstat (limited to 'src/arch/i386/interrupts/isr.h')
-rw-r--r-- | src/arch/i386/interrupts/isr.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/arch/i386/interrupts/isr.h b/src/arch/i386/interrupts/isr.h new file mode 100644 index 0000000..150fc46 --- /dev/null +++ b/src/arch/i386/interrupts/isr.h @@ -0,0 +1,15 @@ +#pragma once +#include <stdbool.h> + +struct interrupt_frame; + +extern bool isr_test_interrupt_called; // used in the self-test in idt.c + +__attribute__((interrupt)) +void isr_double_fault(struct interrupt_frame *frame); + +__attribute__((interrupt)) +void isr_general_protection_fault(struct interrupt_frame *frame); + +__attribute__((interrupt)) +void isr_test_interrupt(struct interrupt_frame *frame); |