From 457a2117706cdaee34f894e67c89da7bf29f6143 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 12 Apr 2021 10:28:04 +0200 Subject: Refactoring --- src/int/int.S | 72 ----------------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 src/int/int.S (limited to 'src/int/int.S') diff --git a/src/int/int.S b/src/int/int.S deleted file mode 100644 index 8ca8b7a..0000000 --- a/src/int/int.S +++ /dev/null @@ -1,72 +0,0 @@ -.macro SAVE_REGS -pushal -push %ds -push %es -push %fs -push %gs -push %ebx -mov $0x10,%bx -mov %bx,%ds -pop %ebx -.endm - -.macro RESTORE_REGS - pop %gs - pop %fs - pop %es - pop %ds - popal -.endm - -.globl interrupt_enable -interrupt_enable: - call idt_init - call pic_init - sti - ret - -.globl INT_DEFAULT -INT_DEFAULT: - SAVE_REGS - movb $0x20, %al - outb %al, $0x20 - RESTORE_REGS - iret - -.globl INT_KEYPRESS -INT_KEYPRESS: - SAVE_REGS - call _8042_keypress - movb $0x20, %al - outb %al, $0x20 - RESTORE_REGS - iret - -.globl INT_CLOCK -INT_CLOCK: - SAVE_REGS - call clock - movb $0x20, %al - outb %al, $0x20 - RESTORE_REGS - iret - -.globl INT_SYSCALL -INT_SYSCALL: - SAVE_REGS - call syscall - movb $0x20, %al - outb %al, $0x20 - RESTORE_REGS - iret - -.globl INT_PAGE_FAULT -INT_PAGE_FAULT: - SAVE_REGS - call page_fault - hlt - movb $0x20, %al - outb %al, $0x20 - RESTORE_REGS - iret - -- cgit v1.2.3