massive overhaul to my exception system

This commit is contained in:
2025-06-05 20:28:17 -04:00
parent 79f04df82e
commit 3e01dc2074
5 changed files with 223 additions and 40 deletions

View File

@ -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