mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
Some refactoring
This commit is contained in:
parent
84fdb622b8
commit
77a2b459d3
4 changed files with 4 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue