From 9dbf8131d6aaff1617ef2bc7ebf54838f808688d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 6 Aug 2020 20:02:44 +0200 Subject: Fixed messed up registers --- src/drivers/interrupts.asm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/drivers') diff --git a/src/drivers/interrupts.asm b/src/drivers/interrupts.asm index 8f8afbb..59c323c 100644 --- a/src/drivers/interrupts.asm +++ b/src/drivers/interrupts.asm @@ -37,6 +37,13 @@ irq_common_stub: push fs push gs + mov ax, 0x10 + mov ds, ax + mov es, ax + mov fs, ax + mov gs, ax + cld + push esp call irq_handler add esp, 4 @@ -113,6 +120,13 @@ isr_common_stub: push fs push gs + mov ax, 0x10 + mov ds, ax + mov es, ax + mov fs, ax + mov gs, ax + cld + push esp call isr_handler add esp, 4 -- cgit v1.2.3