fixed the interrupt gate descriptor setup
[ld45_start_nothing] / src / intr.inc
index a96b164..4bcc085 100644 (file)
@@ -10,6 +10,12 @@ IRQ_OFFSET   equ 32
 %define IRQ_TO_INTR(x) ((x) + IRQ_OFFSET)
 %define INTR_TO_IRQ(x) ((x) - IRQ_OFFSET)
 
+%macro set_trap 2
+       push dword %2
+       push dword %1
+       call set_intr
+       add esp, 8
+%endmacro
 
 %macro set_irq_vector 2
        push dword %2