summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/interrupts/isr.h
blob: c3585dcd0a70109eb91eb265ade2c1dc70cb45c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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_page_fault(struct interrupt_frame *frame);

__attribute__((interrupt))
void isr_test_interrupt(struct interrupt_frame *frame);