aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorMarvin Borner2020-08-06 20:02:44 +0200
committerMarvin Borner2020-08-06 20:02:44 +0200
commit9dbf8131d6aaff1617ef2bc7ebf54838f808688d (patch)
treed578b3a54a509b840a753c9c29a37dd37b2b3f5d /src/drivers
parent1272295d0c611f04128f9e388d5a0468dc64dae0 (diff)
Fixed messed up registers
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/interrupts.asm14
1 files changed, 14 insertions, 0 deletions
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