massive overhaul to my exception system
This commit is contained in:
@ -3,14 +3,6 @@ extern exception_handler_err
|
||||
|
||||
%macro isr_err_stub 1
|
||||
isr_stub_%+%1:
|
||||
;pushad
|
||||
;cld
|
||||
;push dword %1
|
||||
;call exception_handler_err
|
||||
;pop eax ; pop the error
|
||||
;pop eax ; make sure to pop off the dword!!
|
||||
;popad
|
||||
;iret
|
||||
push dword %1 ; push the interrupt number
|
||||
jmp common_interrupt_handler
|
||||
|
||||
@ -18,13 +10,6 @@ isr_stub_%+%1:
|
||||
|
||||
%macro isr_no_err_stub 1
|
||||
isr_stub_%+%1:
|
||||
;pushad
|
||||
;cld
|
||||
;push dword %1
|
||||
;call exception_handler
|
||||
;pop eax
|
||||
;popad
|
||||
;iret
|
||||
push dword 0
|
||||
push dword %1
|
||||
jmp common_interrupt_handler
|
||||
@ -51,7 +36,8 @@ common_interrupt_handler:
|
||||
pop ebx
|
||||
pop eax
|
||||
|
||||
; restore the esp
|
||||
; lets move the stack before the error code and interrupt number
|
||||
; since we don't want these to be popped anywhere
|
||||
add esp, 8
|
||||
|
||||
iret
|
||||
|
Reference in New Issue
Block a user