Make interrupt landing pads safe against external DS values

This commit is contained in:
Nero 2019-04-16 07:23:22 +00:00
parent 8cdc21b596
commit 3b3fa349d4
1 changed files with 8 additions and 8 deletions

View File

@ -77,42 +77,42 @@ intr_init:
irq0:
int 0x48
or byte [intr_flip], 0x01
or byte [cs:intr_flip], 0x01
jmp irqret
irq1:
int 0x49
or byte [intr_flip], 0x02
or byte [cs:intr_flip], 0x02
jmp irqret
irq2:
int 0x4A
or byte [intr_flip], 0x04
or byte [cs:intr_flip], 0x04
jmp irqret
irq3:
int 0x4B
or byte [intr_flip], 0x08
or byte [cs:intr_flip], 0x08
jmp irqret
irq4:
int 0x4C
or byte [intr_flip], 0x10
or byte [cs:intr_flip], 0x10
jmp irqret
irq5:
int 0x4D
or byte [intr_flip], 0x20
or byte [cs:intr_flip], 0x20
jmp irqret
irq6:
int 0x4E
or byte [intr_flip], 0x40
or byte [cs:intr_flip], 0x40
jmp irqret
irq7:
int 0x4F
or byte [intr_flip], 0x80
or byte [cs:intr_flip], 0x80
jmp irqret
hwiret: