1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00

Some refactoring

This commit is contained in:
Braiden Vasco 2017-11-05 13:10:07 +00:00
parent 84fdb622b8
commit 77a2b459d3
4 changed files with 4 additions and 9 deletions

View file

@ -2,7 +2,7 @@
%include "interrupt.asm"
[EXTERN exception_handler]
INTERRUPT_COMMON exception_handler, GDT_KERNEL_DS_SELECTOR
INTERRUPT_NOERRCODE 0 ; #DE - Divide Error Exception
INTERRUPT_NOERRCODE 1 ; #DB - Debug Exception
@ -36,5 +36,3 @@ INTERRUPT_NOERRCODE 28 ; Reserved
INTERRUPT_NOERRCODE 29 ; Reserved
INTERRUPT_NOERRCODE 30 ; Reserved
INTERRUPT_NOERRCODE 31 ; Reserved
INTERRUPT_COMMON exception_handler, GDT_KERNEL_DS_SELECTOR

View file

@ -2,7 +2,7 @@
%include "interrupt.asm"
[EXTERN hwint_handler]
INTERRUPT_COMMON hwint_handler, GDT_KERNEL_DS_SELECTOR
INTERRUPT_NOERRCODE 32 ; Programmable Interval Timer
INTERRUPT_NOERRCODE 33 ; Keyboard
@ -21,5 +21,3 @@ INTERRUPT_NOERRCODE 44 ; Reserved
INTERRUPT_NOERRCODE 45 ; Coprocessor exception
INTERRUPT_NOERRCODE 46 ; Hard Drive Controller
INTERRUPT_NOERRCODE 47 ; Reserved
INTERRUPT_COMMON hwint_handler, GDT_KERNEL_DS_SELECTOR

View file

@ -16,6 +16,7 @@ interrupt_%1:
%endmacro
%macro INTERRUPT_COMMON 2
[EXTERN %1]
interrupt_common:
pusha ; Pushes edi,esi,ebp,esp,ebx,edx,ecx,eax

View file

@ -2,8 +2,6 @@
%include "interrupt.asm"
[EXTERN syscall_handler]
INTERRUPT_COMMON syscall_handler, GDT_KERNEL_DS_SELECTOR
INTERRUPT_NOERRCODE INT_SYSCALL
INTERRUPT_COMMON syscall_handler, GDT_KERNEL_DS_SELECTOR