diff options
Diffstat (limited to 'src/kernel/arch/i386/interrupts/isr.c')
-rw-r--r-- | src/kernel/arch/i386/interrupts/isr.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/kernel/arch/i386/interrupts/isr.c b/src/kernel/arch/i386/interrupts/isr.c deleted file mode 100644 index 2d893cb..0000000 --- a/src/kernel/arch/i386/interrupts/isr.c +++ /dev/null @@ -1,38 +0,0 @@ -#include <kernel/arch/i386/driver/ps2.h> -#include <kernel/arch/i386/driver/serial.h> -#include <kernel/arch/i386/interrupts/irq.h> -#include <kernel/arch/i386/interrupts/isr.h> -#include <kernel/arch/i386/port_io.h> -#include <kernel/arch/generic.h> -#include <kernel/panic.h> -#include <kernel/proc.h> -#include <stdbool.h> -#include <stdint.h> - -bool isr_test_interrupt_called = false; - -void isr_stage3(int interrupt) { - switch (interrupt) { - case 0x08: // double fault - kprintf("#DF"); - panic_invalid_state(); - case 0x34: - isr_test_interrupt_called = true; - return; - - case 0x21: // keyboard irq - ps2_recv(port_in8(0x60)); - irq_eoi(1); - return; - - case 0x24: // COM1 irq - serial_irq(); - irq_eoi(1); - return; - - default: - // TODO check if the exception was in the kernel - process_kill(process_current, interrupt); - process_switch_any(); - } -} |