diff options
Diffstat (limited to 'src/kernel/interrupts/irq.asm')
-rw-r--r-- | src/kernel/interrupts/irq.asm | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/kernel/interrupts/irq.asm b/src/kernel/interrupts/irq.asm deleted file mode 100644 index da7323e..0000000 --- a/src/kernel/interrupts/irq.asm +++ /dev/null @@ -1,55 +0,0 @@ -%macro IRQ 2 - global irq%1 - irq%1: - cli - push byte 0 - push byte %2 - jmp irq_common_stub -%endmacro - -IRQ 0, 32 -IRQ 1, 33 -IRQ 2, 34 -IRQ 3, 35 -IRQ 4, 36 -IRQ 5, 37 -IRQ 6, 38 -IRQ 7, 39 -IRQ 8, 40 -IRQ 9, 41 -IRQ 10, 42 -IRQ 11, 43 -IRQ 12, 44 -IRQ 13, 45 -IRQ 14, 46 -IRQ 15, 47 - -extern irq_handler -irq_common_stub: - pusha - - push ds - push es - push fs - push gs - - mov ax, 0x10 - mov ds, ax - mov es, ax - mov fs, ax - mov gs, ax - cld - - push esp - call irq_handler - add esp, 4 - - pop gs - pop fs - pop es - pop ds - popa - - add esp, 8 - sti - iret
\ No newline at end of file |